diff options
author | Gabriel M. Beddingfield <gabrbedd@ti.com> | 2012-04-19 21:36:19 -0500 |
---|---|---|
committer | Simon Wilson <simonwilson@google.com> | 2012-10-22 16:58:31 -0700 |
commit | cde1f6f974c5832a970e3496467cda39d7dc1157 (patch) | |
tree | ee90039c15a2534e405893768262de3824fbe6ed | |
parent | 2a274a18b0eb4ff45c5bb8f02eb0264d8cc6154c (diff) |
Fix several 'symbol defined but not used' warnings.
-rw-r--r-- | mixer.c | 6 | ||||
-rw-r--r-- | pcm.c | 2 |
2 files changed, 0 insertions, 8 deletions
@@ -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; @@ -719,7 +719,6 @@ int pcm_state(struct pcm *pcm) int pcm_wait(struct pcm *pcm, int timeout) { struct pollfd pfd; - unsigned short revents = 0; int err; pfd.fd = pcm->fd; @@ -832,6 +831,5 @@ int pcm_mmap_write(struct pcm *pcm, const void *buffer, unsigned int bytes) count -= frames; } -_end: return 0; } |