USB: ipaq.c: fix a timeout loop
[pandora-kernel.git] / drivers / usb / serial / ipaq.c
index 4735931..fa3ddf9 100644 (file)
@@ -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);