forked from auracaster/openocd
target: riscv: align switch and case statements
The coding style requires the 'case' to be at the same indentation level of its 'switch' statement. Align the code accordingly. While there, put at newline the command after the 'case'. No changes are reported by git log -p -w --ignore-blank-lines --patience apart from the newline after 'case'. Change-Id: Id856e24100de6fb0442afe8bc51545b0138ef02d Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> Reviewed-on: https://review.openocd.org/c/openocd/+/9069 Tested-by: jenkins Reviewed-by: Evgeniy Naydanov <evgeniy.naydanov@syntacore.com> Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
This commit is contained in:
committed by
Tomas Vanek
parent
56141bb349
commit
bd303d6a3d
@@ -232,16 +232,22 @@ static unsigned int slot_offset(const struct target *target, slot_t slot)
|
|||||||
switch (riscv_xlen(target)) {
|
switch (riscv_xlen(target)) {
|
||||||
case 32:
|
case 32:
|
||||||
switch (slot) {
|
switch (slot) {
|
||||||
case SLOT0: return 4;
|
case SLOT0:
|
||||||
case SLOT1: return 5;
|
return 4;
|
||||||
case SLOT_LAST: return info->dramsize-1;
|
case SLOT1:
|
||||||
|
return 5;
|
||||||
|
case SLOT_LAST:
|
||||||
|
return info->dramsize - 1;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 64:
|
case 64:
|
||||||
switch (slot) {
|
switch (slot) {
|
||||||
case SLOT0: return 4;
|
case SLOT0:
|
||||||
case SLOT1: return 6;
|
return 4;
|
||||||
case SLOT_LAST: return info->dramsize-2;
|
case SLOT1:
|
||||||
|
return 6;
|
||||||
|
case SLOT_LAST:
|
||||||
|
return info->dramsize - 2;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
LOG_ERROR("slot_offset called with xlen=%d, slot=%d",
|
LOG_ERROR("slot_offset called with xlen=%d, slot=%d",
|
||||||
|
|||||||
Reference in New Issue
Block a user