* API callbacks
*/
-static int hw_init(const char *devinfo)
+static int hw_init(void)
{
struct sr_dev_inst *sdi;
struct libusb_device_descriptor des;
int ret, devcnt, i;
struct context *ctx;
- /* Avoid compiler warnings. */
- (void)devinfo;
-
/* Allocate memory for our private driver context. */
if (!(ctx = g_try_malloc(sizeof(struct context)))) {
sr_err("zp: %s: ctx malloc failed", __func__);