diff options
author | Jon Povey <jon.povey@racelogic.co.uk> | 2010-09-24 06:44:10 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-10-22 13:21:55 -0400 |
commit | 2f8d5cd6bcf814411ec356bcdbc666d07bbc6026 (patch) | |
tree | 404faa64d4f3f9c746770df8830f58f85aeed16a | |
parent | f8afbf7f2bf3cee0f4fff7cb753ecc9f583972c3 (diff) |
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>
-rw-r--r-- | drivers/usb/musb/cppi_dma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/musb/cppi_dma.c b/drivers/usb/musb/cppi_dma.c index 5ab5bb89bae3..f5a65ff0ac2b 100644 --- a/drivers/usb/musb/cppi_dma.c +++ b/drivers/usb/musb/cppi_dma.c | |||
@@ -1156,7 +1156,7 @@ irqreturn_t cppi_interrupt(int irq, void *dev_id) | |||
1156 | struct musb_hw_ep *hw_ep = NULL; | 1156 | struct musb_hw_ep *hw_ep = NULL; |
1157 | u32 rx, tx; | 1157 | u32 rx, tx; |
1158 | int i, index; | 1158 | int i, index; |
1159 | unsigned long flags; | 1159 | unsigned long uninitialized_var(flags); |
1160 | 1160 | ||
1161 | cppi = container_of(musb->dma_controller, struct cppi, controller); | 1161 | cppi = container_of(musb->dma_controller, struct cppi, controller); |
1162 | if (cppi->irq) | 1162 | if (cppi->irq) |