From: Andrew Morton drivers/usb/host/ohci-hub.c: In function 'ohci_hub_control': drivers/usb/host/ohci-hub.c:564: warning: 'temp' may be used uninitialized in this function Cc: David Brownell Cc: Greg KH Signed-off-by: Andrew Morton --- drivers/usb/host/ohci-hub.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN drivers/usb/host/ohci-hub.c~fix-gregkh-usb-usb-ohci-port-reset-paranoia-timeout drivers/usb/host/ohci-hub.c --- a/drivers/usb/host/ohci-hub.c~fix-gregkh-usb-usb-ohci-port-reset-paranoia-timeout +++ a/drivers/usb/host/ohci-hub.c @@ -604,7 +604,6 @@ static void start_hnp(struct ohci_hcd *o static inline int root_port_reset (struct ohci_hcd *ohci, unsigned port) { __hc32 __iomem *portstat = &ohci->regs->roothub.portstatus [port]; - u32 temp; 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); @@ -615,6 +614,7 @@ static inline int root_port_reset (struc */ do { int limit_2; + u32 uninitialized_var(temp); /* spin until any current reset finishes */ limit_2 = PORT_RESET_HW_MSEC * 2; _