Fix compiler warnings: Indentation

Change-Id: I9786e6350b77b810ec676bfb770f14a559b67514
Signed-off-by: Sandhya <sandhyks@codeaurora.org>
This commit is contained in:
Sandhya 2019-06-26 10:24:59 +05:30
parent 3a92213ad1
commit 0b984e927c
3 changed files with 21 additions and 20 deletions

View file

@ -506,24 +506,24 @@ static int do_dumpqca_data(unsigned int dump_level)
{
if (dumpinfo[indx].dump_level == MINIMAL_DUMP )
memaddr = dump_minimal(dumpinfo, indx);
if (dumpinfo[indx].size && memaddr) {
if(dumpinfo[indx].dump_level == MINIMAL_DUMP){
snprintf(wlan_segment_name, sizeof(wlan_segment_name), "%lx.BIN",(long unsigned int)memaddr);
ret = dump_to_dst (dumpinfo[indx].is_aligned_access, memaddr, dumpinfo[indx].size, wlan_segment_name);
if (ret == CMD_RET_FAILURE)
goto stop_dump;
}
else {
ret = dump_to_dst (dumpinfo[indx].is_aligned_access, memaddr, dumpinfo[indx].size, dumpinfo[indx].name);
if (ret == CMD_RET_FAILURE)
goto stop_dump;
}
}
else {
ret = dump_wlan_segments(dumpinfo, indx);
if (dumpinfo[indx].size && memaddr) {
if(dumpinfo[indx].dump_level == MINIMAL_DUMP){
snprintf(wlan_segment_name, sizeof(wlan_segment_name), "%lx.BIN",(long unsigned int)memaddr);
ret = dump_to_dst (dumpinfo[indx].is_aligned_access, memaddr, dumpinfo[indx].size, wlan_segment_name);
if (ret == CMD_RET_FAILURE)
goto stop_dump;
}
else {
ret = dump_to_dst (dumpinfo[indx].is_aligned_access, memaddr, dumpinfo[indx].size, dumpinfo[indx].name);
if (ret == CMD_RET_FAILURE)
goto stop_dump;
}
}
else {
ret = dump_wlan_segments(dumpinfo, indx);
if (ret == CMD_RET_FAILURE)
goto stop_dump;
}
}
}

View file

@ -375,10 +375,10 @@ void autoboot_command(const char *s)
s = getenv("dump_to_flash");
if (!s)
s = getenv("dump_minimal");
if (s) {
do_dumpqca_minimal_data(s); /* write core dump data to flash */
run_command("reset", 0);
}
if (s) {
do_dumpqca_minimal_data(s); /* write core dump data to flash */
run_command("reset", 0);
}
else
dump_func(FULL_DUMP);
return;

View file

@ -121,8 +121,9 @@ static int do_flash(cmd_tbl_t *cmdtp, int flag, int argc,
char * const argv[])
{
int flash_cmd = 0;
uint32_t offset, part_size, file_size, adj_size;
uint32_t offset, part_size, adj_size;
uint32_t load_addr = 0;
uint32_t file_size = 0;
uint32_t size_block, start_block, file_size_cpy;
char *part_name = NULL, *filesize, *loadaddr;
int flash_type, ret, retn;