From cde1f6f974c5832a970e3496467cda39d7dc1157 Mon Sep 17 00:00:00 2001 From: "Gabriel M. Beddingfield" Date: Thu, 19 Apr 2012 21:36:19 -0500 Subject: Fix several 'symbol defined but not used' warnings. --- mixer.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'mixer.c') diff --git a/mixer.c b/mixer.c index 9514528..58d4fb5 100644 --- a/mixer.c +++ b/mixer.c @@ -353,8 +353,6 @@ int mixer_ctl_set_value(struct mixer_ctl *ctl, unsigned int id, int value) int mixer_ctl_get_range_min(struct mixer_ctl *ctl) { - int ret; - if (!ctl || (ctl->info->type != SNDRV_CTL_ELEM_TYPE_INTEGER)) return -EINVAL; @@ -363,8 +361,6 @@ int mixer_ctl_get_range_min(struct mixer_ctl *ctl) int mixer_ctl_get_range_max(struct mixer_ctl *ctl) { - int ret; - if (!ctl || (ctl->info->type != SNDRV_CTL_ELEM_TYPE_INTEGER)) return -EINVAL; @@ -382,8 +378,6 @@ unsigned int mixer_ctl_get_num_enums(struct mixer_ctl *ctl) const char *mixer_ctl_get_enum_string(struct mixer_ctl *ctl, unsigned int enum_id) { - int ret; - if (!ctl || (ctl->info->type != SNDRV_CTL_ELEM_TYPE_ENUMERATED) || (enum_id >= ctl->info->value.enumerated.items)) return NULL; -- cgit v1.2.3