summaryrefslogtreecommitdiffstats
path: root/sound/oss
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2017-01-31 14:33:31 +0300
committerTakashi Iwai <tiwai@suse.de>2017-01-31 21:41:19 +0100
commitfc28ab1882b59f65d88f99348fdf01073e67349c (patch)
treed9c296264c61453bbe05a67325ad5ea4582e2bd7 /sound/oss
parent287215e9c4664d8bc15140105a6ce2836722aa94 (diff)
downloadlinux-fc28ab1882b59f65d88f99348fdf01073e67349c.tar.gz
linux-fc28ab1882b59f65d88f99348fdf01073e67349c.tar.bz2
linux-fc28ab1882b59f65d88f99348fdf01073e67349c.zip
sound: oss/ad1848: remove some dead code
We never use the irq2dev[] array so we can remove this assignment. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/oss')
-rw-r--r--sound/oss/ad1848.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/sound/oss/ad1848.c b/sound/oss/ad1848.c
index 6368e5c7d0ba..f6156d8169d0 100644
--- a/sound/oss/ad1848.c
+++ b/sound/oss/ad1848.c
@@ -121,11 +121,6 @@ static bool deskpro_xl;
static bool deskpro_m;
static bool soundpro;
-static volatile signed char irq2dev[17] = {
- -1, -1, -1, -1, -1, -1, -1, -1,
- -1, -1, -1, -1, -1, -1, -1, -1, -1
-};
-
#ifndef EXCLUDE_TIMERS
static int timer_installed = -1;
#endif
@@ -2060,7 +2055,7 @@ int ad1848_init (char *name, struct resource *ports, int irq, int dma_playback,
else
devc->irq_ok = 1; /* Couldn't test. assume it's OK */
} else if (irq < 0)
- irq2dev[-irq] = devc->dev_no = my_dev;
+ devc->dev_no = my_dev;
#ifndef EXCLUDE_TIMERS
if ((capabilities[devc->model].flags & CAP_F_TIMER) &&