forked from auracaster/openocd
target: prepare for aligning switch and case statements
To prepare for aligning switch and case statements, fix in advance some checkpatch error due to existing code: - remove useless parenthesis; - remove useless 'break'; - join spit lines; - add space around operators; - remove 'else' after exit() and return. Change-Id: I8a87a0ea104205d087dcb8cbf4c67ff13a47742f Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> Reviewed-on: https://review.openocd.org/c/openocd/+/9050 Tested-by: jenkins Reviewed-by: zapb <dev@zapb.de>
This commit is contained in:
@@ -2708,7 +2708,7 @@ static int xscale_analyze_trace(struct target *target, struct command_invocation
|
||||
|
||||
case 13: /* Checkpointed Indirect Branch */
|
||||
xscale_branch_address(trace_data, i, &branch_target);
|
||||
if ((trace_data->num_checkpoints == 2) && (chkpt == 0))
|
||||
if (trace_data->num_checkpoints == 2 && chkpt == 0)
|
||||
chkpt_reg = trace_data->chkpt1; /* 2 chkpts, this is
|
||||
*oldest */
|
||||
else
|
||||
@@ -2719,7 +2719,7 @@ static int xscale_analyze_trace(struct target *target, struct command_invocation
|
||||
break;
|
||||
|
||||
case 12: /* Checkpointed Direct Branch */
|
||||
if ((trace_data->num_checkpoints == 2) && (chkpt == 0))
|
||||
if (trace_data->num_checkpoints == 2 && chkpt == 0)
|
||||
chkpt_reg = trace_data->chkpt1; /* 2 chkpts, this is
|
||||
*oldest */
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user