Checkpoint: fix some code style issues

This commit is contained in:
Ryan Macdonald 2018-04-05 16:39:33 -07:00
parent 3bdb8b29a8
commit 761aaeba98
1 changed files with 28 additions and 35 deletions

View File

@ -2826,19 +2826,12 @@ static int get_max_sbaccess(struct target *target)
uint32_t sbaccess16 = get_field(sbcs, DMI_SBCS_SBACCESS16);
uint32_t sbaccess8 = get_field(sbcs, DMI_SBCS_SBACCESS8);
if(sbaccess128){
return 4;
}else if(sbaccess64){
return 3;
}else if(sbaccess32){
return 2;
}else if(sbaccess16){
return 1;
}else if(sbaccess8){
return 0;
} else {
return ERROR_FAIL;
}
if (sbaccess128) return 4;
else if (sbaccess64) return 3;
else if (sbaccess32) return 2;
else if (sbaccess16) return 1;
else if (sbaccess8) return 0;
else return ERROR_FAIL;
}
static int riscv013_test_sba_config_reg(struct target *target, target_addr_t illegal_address)