]> sigrok.org Git - libsigrok.git/blobdiff - src/ezusb.c
yokogawa-dlm: Minor cosmetics, consistency fixes, typos.
[libsigrok.git] / src / ezusb.c
index 044b4642705458d9c91b4b0c39b5a109a38a24dc..9f40d3b72179e5fd1b2a81afb1c077babc3b986f 100644 (file)
@@ -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;
@@ -102,7 +102,7 @@ SR_PRIV int ezusb_upload_firmware(libusb_device *dev, int configuration,
        }
 
 /*
- * The libusbx darwin backend is broken: it can report a kernel driver being
+ * The libusb Darwin backend is broken: it can report a kernel driver being
  * active, but detaching it always returns an error.
  */
 #if !defined(__APPLE__)