From: Roel Kluin Date: Sat, 31 Jan 2009 11:37:04 +0000 (+0100) Subject: USB: count reaches -1, tested 0 X-Git-Tag: accepted/tizen/common/20141203.182822~17080^2~75 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6e14bda1b18b2e3c16258427fc43ceb43e1bc1d5;p=platform%2Fkernel%2Flinux-arm64.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 75b6984..033c284 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;