From: Peter Stuge Date: Mon, 3 Dec 2012 00:34:23 +0000 (+0100) Subject: alsa: Remove unused and unprovided hw_init() parameter `devname' X-Git-Tag: dsupstream~486 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=73496bb57138dcd1aad4800c8c9ffc6484ca9d8a;p=libsigrok.git alsa: Remove unused and unprovided hw_init() parameter `devname' --- diff --git a/hardware/alsa/alsa.c b/hardware/alsa/alsa.c index 897e644d..55d96c32 100644 --- a/hardware/alsa/alsa.c +++ b/hardware/alsa/alsa.c @@ -75,13 +75,11 @@ struct context { void *session_dev_id; }; -static int hw_init(const char *devinfo) +static int hw_init(void) { struct sr_dev_inst *sdi; struct context *ctx; - (void)devinfo; - if (!(ctx = g_try_malloc0(sizeof(struct context)))) { sr_err("%s: ctx malloc failed", __func__); return SR_ERR_MALLOC;