projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
287215e
)
sound: oss/ad1848: remove some dead code
author
Dan Carpenter
<dan.carpenter@oracle.com>
Tue, 31 Jan 2017 11:33:31 +0000
(14:33 +0300)
committer
Takashi Iwai
<tiwai@suse.de>
Tue, 31 Jan 2017 20:41:19 +0000
(21:41 +0100)
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>
sound/oss/ad1848.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/oss/ad1848.c
b/sound/oss/ad1848.c
index 6368e5c7d0ba93328fd83893731f59a314d01be0..f6156d8169d05b259c1fb35219efa7d6e3def735 100644
(file)
--- 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) &&