Skip to content

Commit

Permalink
USB: musb: suppress warning about unused flags
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jon Povey authored and Greg Kroah-Hartman committed Oct 22, 2010
1 parent f8afbf7 commit 2f8d5cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usb/musb/cppi_dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -1156,7 +1156,7 @@ irqreturn_t cppi_interrupt(int irq, void *dev_id)
struct musb_hw_ep *hw_ep = NULL;
u32 rx, tx;
int i, index;
unsigned long flags;
unsigned long uninitialized_var(flags);

cppi = container_of(musb->dma_controller, struct cppi, controller);
if (cppi->irq)
Expand Down

0 comments on commit 2f8d5cd

Please sign in to comment.