]> sigrok.org Git - libsigrok.git/blobdiff - hardware/fx2lafw/fx2lafw.c
sr: remove unused argument from hardware driver function init()
[libsigrok.git] / hardware / fx2lafw / fx2lafw.c
index 951c9196ffeebd147e8e38075676c52f5caba8ce..736490feca20e9c3cfa5d2d3b26193c9055f10ff 100644 (file)
@@ -382,7 +382,7 @@ static struct context *fx2lafw_dev_new(void)
  * API callbacks
  */
 
-static int hw_init(const char *devinfo)
+static int hw_init(void)
 {
        struct sr_dev_inst *sdi;
        struct libusb_device_descriptor des;
@@ -393,9 +393,6 @@ static int hw_init(const char *devinfo)
        int devcnt = 0;
        int i, j;
 
-       /* Avoid compiler warnings. */
-       (void)devinfo;
-
        if (libusb_init(&usb_context) != 0) {
                sr_warn("fx2lafw: Failed to initialize libusb.");
                return 0;