X-Git-Url: https://git.gag.com/?a=blobdiff_plain;ds=sidebyside;f=src%2Fpld%2Fvirtex2.c;h=a2de8ccf55603fe3a19f5ae5a8877807649917da;hb=4f371e8eed5c4e479d326cf09f7827884c23b947;hp=934a6807c39c57112d4e70532c337ea7387106c1;hpb=6cb5ba6f1136df2986850f5c176cb38e34ca1795;p=fw%2Fopenocd diff --git a/src/pld/virtex2.c b/src/pld/virtex2.c index 934a6807c..a2de8ccf5 100644 --- a/src/pld/virtex2.c +++ b/src/pld/virtex2.c @@ -26,7 +26,7 @@ static int virtex2_set_instr(struct jtag_tap *tap, uint32_t new_instr) { - if (tap == NULL) + if (!tap) return ERROR_FAIL; if (buf_get_u32(tap->cur_instr, 0, tap->ir_length) != new_instr) { @@ -204,7 +204,7 @@ PLD_DEVICE_COMMAND_HANDLER(virtex2_pld_device_command) return ERROR_COMMAND_SYNTAX_ERROR; tap = jtag_tap_by_string(CMD_ARGV[1]); - if (tap == NULL) { + if (!tap) { command_print(CMD, "Tap: %s does not exist", CMD_ARGV[1]); return ERROR_OK; }