X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=hardware%2Fasix-sigma%2Fasix-sigma.c;h=4884afde18e5b13a0ce6f96e52342c8b57785575;hb=40dda2c3a509e9e031078427e32249e2ebc33ec5;hp=b5d2b97f8e01772012f4c4f5db259340865a4ee3;hpb=0d012ede9d54c6c5c276be52778483fd020c40d7;p=libsigrok.git diff --git a/hardware/asix-sigma/asix-sigma.c b/hardware/asix-sigma/asix-sigma.c index b5d2b97f..4884afde 100644 --- a/hardware/asix-sigma/asix-sigma.c +++ b/hardware/asix-sigma/asix-sigma.c @@ -405,7 +405,7 @@ static int bin2bitbang(const char *filename, return SR_OK; } -static int hw_init(const char *devinfo) +static int hw_init(void) { struct sr_dev_inst *sdi; struct context *ctx; @@ -413,9 +413,6 @@ static int hw_init(const char *devinfo) char serial_txt[10]; uint32_t serial; - /* Avoid compiler warnings. */ - (void)devinfo; - if (!(ctx = g_try_malloc(sizeof(struct context)))) { sr_err("sigma: %s: ctx malloc failed", __func__); return SR_ERR_MALLOC;