Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 133498
b: refs/heads/master
c: 5d1ca6c
h: refs/heads/master
v: v3
  • Loading branch information
David Brownell authored and Greg Kroah-Hartman committed Mar 24, 2009
1 parent d2bf6f3 commit 0d0b47d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 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: 6f8aa65b52037123beab573432e371c0f70b7b9a
refs/heads/master: 5d1ca6cf7f80644b07c348d6be870ccd8e3a92ed
11 changes: 2 additions & 9 deletions trunk/drivers/usb/serial/ftdi_sio.c
Original file line number Diff line number Diff line change
Expand Up @@ -2292,11 +2292,8 @@ static int ftdi_tiocmget(struct tty_struct *tty, struct file *file)
FTDI_SIO_GET_MODEM_STATUS_REQUEST_TYPE,
0, 0,
buf, 1, WDR_TIMEOUT);
if (ret < 0) {
dbg("%s Could not get modem status of device - err: %d", __func__,
ret);
if (ret < 0)
return ret;
}
break;
case FT8U232AM:
case FT232BM:
Expand All @@ -2311,15 +2308,11 @@ static int ftdi_tiocmget(struct tty_struct *tty, struct file *file)
FTDI_SIO_GET_MODEM_STATUS_REQUEST_TYPE,
0, priv->interface,
buf, 2, WDR_TIMEOUT);
if (ret < 0) {
dbg("%s Could not get modem status of device - err: %d", __func__,
ret);
if (ret < 0)
return ret;
}
break;
default:
return -EFAULT;
break;
}

return (buf[0] & FTDI_SIO_DSR_MASK ? TIOCM_DSR : 0) |
Expand Down

0 comments on commit 0d0b47d

Please sign in to comment.