mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
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>
This commit is contained in:
parent
287215e9c4
commit
fc28ab1882
@ -121,11 +121,6 @@ static bool deskpro_xl;
|
|||||||
static bool deskpro_m;
|
static bool deskpro_m;
|
||||||
static bool soundpro;
|
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
|
#ifndef EXCLUDE_TIMERS
|
||||||
static int timer_installed = -1;
|
static int timer_installed = -1;
|
||||||
#endif
|
#endif
|
||||||
@ -2060,7 +2055,7 @@ int ad1848_init (char *name, struct resource *ports, int irq, int dma_playback,
|
|||||||
else
|
else
|
||||||
devc->irq_ok = 1; /* Couldn't test. assume it's OK */
|
devc->irq_ok = 1; /* Couldn't test. assume it's OK */
|
||||||
} else if (irq < 0)
|
} else if (irq < 0)
|
||||||
irq2dev[-irq] = devc->dev_no = my_dev;
|
devc->dev_no = my_dev;
|
||||||
|
|
||||||
#ifndef EXCLUDE_TIMERS
|
#ifndef EXCLUDE_TIMERS
|
||||||
if ((capabilities[devc->model].flags & CAP_F_TIMER) &&
|
if ((capabilities[devc->model].flags & CAP_F_TIMER) &&
|
||||||
|
Loading…
x
Reference in New Issue
Block a user