From: Roel Kluin Date: Sat, 31 Jan 2009 11:37:04 +0000 (+0100) Subject: USB: count reaches -1, tested 0 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6e14bda1b18b2e3c16258427fc43ceb43e1bc1d5;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git USB: count reaches -1, tested 0 With a postfix decrement count will reach -1 rather than 0, so the warning will not be issued. Signed-off-by: Roel Kluin Acked-by: David Brownell Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/host/pci-quirks.c b/drivers/usb/host/pci-quirks.c index 75b69847918e..033c2846ce59 100644 --- a/drivers/usb/host/pci-quirks.c +++ b/drivers/usb/host/pci-quirks.c @@ -234,7 +234,7 @@ static void __devinit quirk_usb_disable_ehci(struct pci_dev *pdev) */ hcc_params = readl(base + EHCI_HCC_PARAMS); offset = (hcc_params >> 8) & 0xff; - while (offset && count--) { + while (offset && --count) { u32 cap; int msec;