X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=hardware%2Fzeroplus-logic-cube%2Fzeroplus.c;h=25660af08eaf7d3839d454a7eebf3564c8f6ef23;hb=40dda2c3a509e9e031078427e32249e2ebc33ec5;hp=627b937e0ab1bbf66880da1e957b682f026c01c8;hpb=0d012ede9d54c6c5c276be52778483fd020c40d7;p=libsigrok.git diff --git a/hardware/zeroplus-logic-cube/zeroplus.c b/hardware/zeroplus-logic-cube/zeroplus.c index 627b937e..25660af0 100644 --- a/hardware/zeroplus-logic-cube/zeroplus.c +++ b/hardware/zeroplus-logic-cube/zeroplus.c @@ -327,7 +327,7 @@ static int configure_probes(struct sr_dev_inst *sdi, const GSList *probes) * API callbacks */ -static int hw_init(const char *devinfo) +static int hw_init(void) { struct sr_dev_inst *sdi; struct libusb_device_descriptor des; @@ -335,9 +335,6 @@ static int hw_init(const char *devinfo) 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__);