提交 2f8d5cd6 编写于 作者: J Jon Povey 提交者: Greg Kroah-Hartman

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: NJon Povey <jon.povey@racelogic.co.uk>
Signed-off-by: NFelipe Balbi <balbi@ti.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 f8afbf7f
...@@ -1156,7 +1156,7 @@ irqreturn_t cppi_interrupt(int irq, void *dev_id) ...@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册