openocd: remove NULL comparisons with checkpatch [1/2]
[fw/openocd] / src / flash / nor / jtagspi.c
index fade970afbc37c648a10772f6f2c964dc8b1298a..dc49fda6153ddf31e2b97c820cc58d5c42e48c7d 100644 (file)
@@ -172,7 +172,7 @@ static int jtagspi_probe(struct flash_bank *bank)
                free(bank->sectors);
        info->probed = false;
 
-       if (bank->target->tap == NULL) {
+       if (!bank->target->tap) {
                LOG_ERROR("Target has no JTAG tap");
                return ERROR_FAIL;
        }