OpenOCD: drop comparison with true/false
Fix checkpatch errors: ERROR:BOOL_COMPARISON: Using comparison to true/false is error prone While there, - drop useless parenthesis, - drop unnecessary else after a return. Change-Id: I1234737b3e65bd10df5e938d1c36f9abaf02d348 Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> Reviewed-on: https://review.openocd.org/c/openocd/+/8496 Reviewed-by: zapb <dev@zapb.de> Tested-by: jenkins
This commit is contained in:
@@ -3042,7 +3042,7 @@ COMMAND_HANDLER(handle_reg_command)
|
||||
for (i = 0, reg = cache->reg_list;
|
||||
i < cache->num_regs;
|
||||
i++, reg++, count++) {
|
||||
if (reg->exist == false || reg->hidden)
|
||||
if (!reg->exist || reg->hidden)
|
||||
continue;
|
||||
/* only print cached values if they are valid */
|
||||
if (reg->valid) {
|
||||
|
||||
Reference in New Issue
Block a user