projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d1c0713
)
USB: count reaches -1, tested 0
author
Roel Kluin
<roel.kluin@gmail.com>
Sat, 31 Jan 2009 11:37:04 +0000
(12:37 +0100)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Tue, 24 Mar 2009 23:20:29 +0000
(16:20 -0700)
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>
drivers/usb/host/pci-quirks.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/usb/host/pci-quirks.c
b/drivers/usb/host/pci-quirks.c
index 75b69847918e3a35c3a2832188ca0cb87dc6c9cb..033c2846ce5923e05f0805bff889ab45268ea056 100644
(file)
--- 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;