openocd: fix simple cases of NULL comparison
[fw/openocd] / src / jtag / drivers / bitq.c
index 97734a92e5ecc804345269d2af8ee57af9ed3df7..04fc78b586808fd2bf1b78ea5c8a80e63e8a1b1d 100644 (file)
@@ -168,7 +168,7 @@ static void bitq_scan_field(struct scan_field *field, int do_pause)
        else
                tdo_req = 0;
 
-       if (field->out_value == NULL) {
+       if (!field->out_value) {
                /* just send zeros and request data from TDO */
                for (bit_cnt = field->num_bits; bit_cnt > 1; bit_cnt--)
                        bitq_io(0, 0, tdo_req);