openocd: remove NULL comparisons with checkpatch [1/2]
Patch generated automatically through the new checkpatch with flags "--types COMPARISON_TO_NULL --fix-inplace". This only fixes the comparisons if (symbol == NULL) if (symbol != NULL) The case of NULL on the left side of the comparison is not tested. Some automatic fix is incorrect and has been massaged by hands: - if (*psig == NULL) + if (*!psig) changed as + if (!*psig) Change-Id: If4a1e2b4e547e223532e8e3d9da89bf9cb382ce6 Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> Reviewed-on: http://openocd.zylin.com/6351 Tested-by: jenkins
This commit is contained in:
@@ -186,7 +186,7 @@ static int mips_m4k_poll(struct target *target)
|
||||
/* the next polling trigger an halt event sent to gdb */
|
||||
if ((target->state == TARGET_HALTED) && (target->smp) &&
|
||||
(target->gdb_service) &&
|
||||
(target->gdb_service->target == NULL)) {
|
||||
(!target->gdb_service->target)) {
|
||||
target->gdb_service->target =
|
||||
get_mips_m4k(target, target->gdb_service->core[1]);
|
||||
target_call_event_callbacks(target, TARGET_EVENT_HALTED);
|
||||
|
||||
Reference in New Issue
Block a user