USB: musb: suppress warning about unused flags
Wrap flags with uninitialized_var() to suppress this: drivers/usb/musb/cppi_dma.c:1158: warning: 'flags' may be used uninitialized in this function Signed-off-by: Jon Povey <jon.povey@racelogic.co.uk> Signed-off-by: Felipe Balbi <balbi@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
Родитель
f8afbf7f2b
Коммит
2f8d5cd6bc
|
@ -1156,7 +1156,7 @@ irqreturn_t cppi_interrupt(int irq, void *dev_id)
|
||||||
struct musb_hw_ep *hw_ep = NULL;
|
struct musb_hw_ep *hw_ep = NULL;
|
||||||
u32 rx, tx;
|
u32 rx, tx;
|
||||||
int i, index;
|
int i, index;
|
||||||
unsigned long flags;
|
unsigned long uninitialized_var(flags);
|
||||||
|
|
||||||
cppi = container_of(musb->dma_controller, struct cppi, controller);
|
cppi = container_of(musb->dma_controller, struct cppi, controller);
|
||||||
if (cppi->irq)
|
if (cppi->irq)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче