Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 36461
b: refs/heads/master
c: 48298e5
h: refs/heads/master
i:
  36459: fbbb313
v: v3
  • Loading branch information
Mike Isely authored and Greg Kroah-Hartman committed Sep 27, 2006
1 parent 62e0348 commit f633a98
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9aa8dae7b1fa7af099a403fc3766e068a0ea6d68
refs/heads/master: 48298e50e0f7dfc7273ebfaa37ffd225428e83ed
8 changes: 2 additions & 6 deletions trunk/drivers/usb/serial/cypress_m8.c
Original file line number Diff line number Diff line change
Expand Up @@ -367,9 +367,7 @@ static int cypress_serial_control (struct usb_serial_port *port, unsigned baud_m
if (tries++ >= 3)
break;

if (retval == EPIPE)
usb_clear_halt(port->serial->dev, 0x00);
} while (retval != 8 && retval != ENODEV);
} while (retval != 8 && retval != -ENODEV);

if (retval != 8)
err("%s - failed sending serial line settings - %d", __FUNCTION__, retval);
Expand All @@ -394,9 +392,7 @@ static int cypress_serial_control (struct usb_serial_port *port, unsigned baud_m
if (tries++ >= 3)
break;

if (retval == EPIPE)
usb_clear_halt(port->serial->dev, 0x00);
} while (retval != 5 && retval != ENODEV);
} while (retval != 5 && retval != -ENODEV);

if (retval != 5) {
err("%s - failed to retrieve serial line settings - %d", __FUNCTION__, retval);
Expand Down

0 comments on commit f633a98

Please sign in to comment.