diff options
author | Roel Kluin <roel.kluin@gmail.com> | 2009-01-31 06:37:04 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-03-24 19:20:29 -0400 |
commit | 6e14bda1b18b2e3c16258427fc43ceb43e1bc1d5 (patch) | |
tree | b18bce5c7b0d1f49cb32dfa4611571f9ae44b176 /drivers/usb/host/pci-quirks.c | |
parent | d1c0713daea5d1d881ecc8707458ca6746031376 (diff) |
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 <roel.kluin@gmail.com>
Acked-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/host/pci-quirks.c')
-rw-r--r-- | drivers/usb/host/pci-quirks.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
234 | */ | 234 | */ |
235 | hcc_params = readl(base + EHCI_HCC_PARAMS); | 235 | hcc_params = readl(base + EHCI_HCC_PARAMS); |
236 | offset = (hcc_params >> 8) & 0xff; | 236 | offset = (hcc_params >> 8) & 0xff; |
237 | while (offset && count--) { | 237 | while (offset && --count) { |
238 | u32 cap; | 238 | u32 cap; |
239 | int msec; | 239 | int msec; |
240 | 240 | ||