X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fezusb.c;h=465dab0360f4c72f3e6b601ad43c264aaac0ed91;hb=b9eb8e1a8cdb4ac6449cfa881da96bcf9bc687ad;hp=034c6c9ebf9679e1ea2dd9ba230b251ae1c97c3f;hpb=f3f19d1131025b68d29a11273b627c83d748e7ea;p=libsigrok.git diff --git a/src/ezusb.c b/src/ezusb.c index 034c6c9e..465dab03 100644 --- a/src/ezusb.c +++ b/src/ezusb.c @@ -27,7 +27,7 @@ #include #include #include -#include "libsigrok.h" +#include #include "libsigrok-internal.h" #define LOG_PREFIX "ezusb" @@ -57,7 +57,7 @@ SR_PRIV int ezusb_install_firmware(libusb_device_handle *hdl, unsigned char buf[4096]; sr_info("Uploading firmware at %s", filename); - if ((fw = g_fopen(filename, "rb")) == NULL) { + if (!(fw = g_fopen(filename, "rb"))) { sr_err("Unable to open firmware file %s for reading: %s", filename, strerror(errno)); return SR_ERR;