forked from auracaster/openocd
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:
@@ -389,7 +389,7 @@ int rtos_thread_packet(struct connection *connection, char const *packet, int pa
|
||||
return ERROR_OK;
|
||||
} else if (strncmp(packet, "qSymbol", 7) == 0) {
|
||||
if (rtos_qsymbol(connection, packet, packet_size) == 1) {
|
||||
if (target->rtos_auto_detect == true) {
|
||||
if (target->rtos_auto_detect) {
|
||||
target->rtos_auto_detect = false;
|
||||
target->rtos->type->create(target);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user