]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
USB: OHCI: work around bogus compiler warning
authorAlan Stern <stern@rowland.harvard.edu>
Tue, 22 Apr 2008 14:50:18 +0000 (10:50 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 2 May 2008 17:25:57 +0000 (10:25 -0700)
The patch (as1086) works around a bogus "uninitialized variable"
warning generated by some versions of GCC.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/host/ohci-hub.c

index 17dc2eccda83e7d6dca6bfd725fbd87fdce8b649..79a78029f896869892fa2696bd8f1764cc79f9e7 100644 (file)
@@ -613,7 +613,7 @@ static void start_hnp(struct ohci_hcd *ohci);
 static inline int root_port_reset (struct ohci_hcd *ohci, unsigned port)
 {
        __hc32 __iomem *portstat = &ohci->regs->roothub.portstatus [port];
-       u32     temp;
+       u32     temp = 0;
        u16     now = ohci_readl(ohci, &ohci->regs->fmnumber);
        u16     reset_done = now + PORT_RESET_MSEC;
        int     limit_1 = DIV_ROUND_UP(PORT_RESET_MSEC, PORT_RESET_HW_MSEC);