git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
USB: ipaq.c: fix a timeout loop
[pandora-kernel.git]
/
drivers
/
usb
/
serial
/
ipaq.c
diff --git
a/drivers/usb/serial/ipaq.c
b/drivers/usb/serial/ipaq.c
index
4735931
..
fa3ddf9
100644
(file)
--- a/
drivers/usb/serial/ipaq.c
+++ b/
drivers/usb/serial/ipaq.c
@@
-582,7
+582,8
@@
static int ipaq_open(struct tty_struct *tty,
* through. Since this has a reasonably high failure rate, we retry
* several times.
*/
- while (retries--) {
+ while (retries) {
+ retries--;
result = usb_control_msg(serial->dev,
usb_sndctrlpipe(serial->dev, 0), 0x22, 0x21,
0x1, 0, NULL, 0, 100);