target: 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: - add space around the operators; - drop useless empty line. Skip all riscv code, as it is going to be updated soon from the external fork. No changes are reported by git log -p -w --ignore-blank-lines --patience Change-Id: I2691dfdd2b6734143e14160b46183623e9773539 Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> Reviewed-on: https://review.openocd.org/c/openocd/+/9051 Tested-by: jenkins
This commit is contained in:
@@ -80,15 +80,15 @@ static void fa526_read_core_regs_target_buffer(struct target *target,
|
||||
if (mask & (1 << i))
|
||||
/* nothing fetched, STM in MEMORY (i'th cycle) */
|
||||
switch (size) {
|
||||
case 4:
|
||||
arm9tdmi_clock_data_in_endianness(jtag_info, buf_u32++, 4, be);
|
||||
break;
|
||||
case 2:
|
||||
arm9tdmi_clock_data_in_endianness(jtag_info, buf_u16++, 2, be);
|
||||
break;
|
||||
case 1:
|
||||
arm9tdmi_clock_data_in_endianness(jtag_info, buf_u8++, 1, be);
|
||||
break;
|
||||
case 4:
|
||||
arm9tdmi_clock_data_in_endianness(jtag_info, buf_u32++, 4, be);
|
||||
break;
|
||||
case 2:
|
||||
arm9tdmi_clock_data_in_endianness(jtag_info, buf_u16++, 2, be);
|
||||
break;
|
||||
case 1:
|
||||
arm9tdmi_clock_data_in_endianness(jtag_info, buf_u8++, 1, be);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user