From: Alan Stern Date: Tue, 22 Apr 2008 14:50:18 +0000 (-0400) Subject: USB: OHCI: work around bogus compiler warning X-Git-Tag: v3.12-rc1~20886^2~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1b7b61c5d4071b9a25f6a9aae6f0a1e0efdbb2ae;p=kernel%2Fkernel-generic.git USB: OHCI: work around bogus compiler warning The patch (as1086) works around a bogus "uninitialized variable" warning generated by some versions of GCC. Signed-off-by: Alan Stern Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/host/ohci-hub.c b/drivers/usb/host/ohci-hub.c index 17dc2ec..79a7802 100644 --- a/drivers/usb/host/ohci-hub.c +++ b/drivers/usb/host/ohci-hub.c @@ -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);