]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
USB: musb: suppress warning about unused flags
authorJon Povey <jon.povey@racelogic.co.uk>
Fri, 24 Sep 2010 10:44:10 +0000 (13:44 +0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 22 Oct 2010 17:21:55 +0000 (10:21 -0700)
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>
drivers/usb/musb/cppi_dma.c

index 5ab5bb89bae3558cfe6f296e37931680afa0e323..f5a65ff0ac2bb467b7b5fd9817bd1fa16a4434cf 100644 (file)
@@ -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)