]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/fx2lafw/dslogic.c
Various NULL-check consistency fixes.
[libsigrok.git] / src / hardware / fx2lafw / dslogic.c
index f0b49c341a6a0957ede76e8806f8874a68866b19..715ca8a571bcb69cc2963fbe6a3e5497901004cb 100644 (file)
@@ -57,7 +57,7 @@ int dslogic_fpga_firmware_upload(const struct sr_dev_inst *sdi,
        }
        buf = g_malloc(FW_BUFSIZE);
 
-       if ((fw = g_fopen(filename, "rb")) == NULL) {
+       if (!(fw = g_fopen(filename, "rb"))) {
                sr_err("Unable to open %s for reading: %s.", filename, strerror(errno));
                return SR_ERR;
        }