]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/usb/host/pci-quirks.c
USB: count reaches -1, tested 0
[linux-2.6-omap-h63xx.git] / drivers / usb / host / pci-quirks.c
index 75b69847918e3a35c3a2832188ca0cb87dc6c9cb..033c2846ce5923e05f0805bff889ab45268ea056 100644 (file)
@@ -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;