Skip to content

Commit

Permalink
USB: count reaches -1, tested 0
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Roel Kluin authored and Greg Kroah-Hartman committed Mar 24, 2009
1 parent d1c0713 commit 6e14bda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usb/host/pci-quirks.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 6e14bda

Please sign in to comment.