openocd: fix simple cases of NULL comparison
[fw/openocd] / src / target / arm_jtag.c
index f9605acb16a562b1013eb514fb0d0228f69d358c..6a27e323f8d08f3538de1371cf7e99eea986b416 100644 (file)
@@ -40,7 +40,7 @@ int arm_jtag_set_instr_inner(struct jtag_tap *tap,
        buf_set_u32(t, 0, field.num_bits, new_instr);
        field.in_value = NULL;
 
-       if (no_verify_capture == NULL)
+       if (!no_verify_capture)
                jtag_add_ir_scan(tap, &field, end_state);
        else {
                /* FIX!!!! this is a kludge!!! arm926ejs.c should reimplement this arm_jtag_set_instr to