diff options
author | Alan Stern <stern@rowland.harvard.edu> | 2008-04-22 10:50:18 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-05-02 13:25:57 -0400 |
commit | 1b7b61c5d4071b9a25f6a9aae6f0a1e0efdbb2ae (patch) | |
tree | 3fc794648920b8adde151bd722fbc5a786656705 /drivers/usb | |
parent | e9b29ffc519b9e63d4e1c0b1278bb951bb418a9d (diff) |
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 <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/host/ohci-hub.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/host/ohci-hub.c b/drivers/usb/host/ohci-hub.c index 17dc2eccda83..79a78029f896 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); | |||
613 | static inline int root_port_reset (struct ohci_hcd *ohci, unsigned port) | 613 | static inline int root_port_reset (struct ohci_hcd *ohci, unsigned port) |
614 | { | 614 | { |
615 | __hc32 __iomem *portstat = &ohci->regs->roothub.portstatus [port]; | 615 | __hc32 __iomem *portstat = &ohci->regs->roothub.portstatus [port]; |
616 | u32 temp; | 616 | u32 temp = 0; |
617 | u16 now = ohci_readl(ohci, &ohci->regs->fmnumber); | 617 | u16 now = ohci_readl(ohci, &ohci->regs->fmnumber); |
618 | u16 reset_done = now + PORT_RESET_MSEC; | 618 | u16 reset_done = now + PORT_RESET_MSEC; |
619 | int limit_1 = DIV_ROUND_UP(PORT_RESET_MSEC, PORT_RESET_HW_MSEC); | 619 | int limit_1 = DIV_ROUND_UP(PORT_RESET_MSEC, PORT_RESET_HW_MSEC); |