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:
@@ -893,17 +893,17 @@ static int mips_m4k_set_watchpoint(struct target *target,
|
||||
}
|
||||
|
||||
switch (watchpoint->rw) {
|
||||
case WPT_READ:
|
||||
enable &= ~EJTAG_DBCN_NOLB;
|
||||
break;
|
||||
case WPT_WRITE:
|
||||
enable &= ~EJTAG_DBCN_NOSB;
|
||||
break;
|
||||
case WPT_ACCESS:
|
||||
enable &= ~(EJTAG_DBCN_NOLB | EJTAG_DBCN_NOSB);
|
||||
break;
|
||||
default:
|
||||
LOG_ERROR("BUG: watchpoint->rw neither read, write nor access");
|
||||
case WPT_READ:
|
||||
enable &= ~EJTAG_DBCN_NOLB;
|
||||
break;
|
||||
case WPT_WRITE:
|
||||
enable &= ~EJTAG_DBCN_NOSB;
|
||||
break;
|
||||
case WPT_ACCESS:
|
||||
enable &= ~(EJTAG_DBCN_NOLB | EJTAG_DBCN_NOSB);
|
||||
break;
|
||||
default:
|
||||
LOG_ERROR("BUG: watchpoint->rw neither read, write nor access");
|
||||
}
|
||||
|
||||
watchpoint_set(watchpoint, wp_num);
|
||||
|
||||
Reference in New Issue
Block a user