Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 280781
b: refs/heads/master
c: c515598
h: refs/heads/master
i:
  280779: c1dd406
v: v3
  • Loading branch information
Andrew Worsley authored and Greg Kroah-Hartman committed Nov 27, 2011
1 parent e8460cb commit 7e32b8a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 045ddc8991698a8e9c5668c6190faa8b5d516dc0
refs/heads/master: c515598e0f5769916c31c00392cc2bfe6af74e55
4 changes: 4 additions & 0 deletions trunk/drivers/usb/serial/ftdi_sio.c
Original file line number Diff line number Diff line change
Expand Up @@ -2104,6 +2104,9 @@ static void ftdi_set_termios(struct tty_struct *tty,

cflag = termios->c_cflag;

if (old_termios == 0)
goto no_skip;

if (old_termios->c_cflag == termios->c_cflag
&& old_termios->c_ispeed == termios->c_ispeed
&& old_termios->c_ospeed == termios->c_ospeed)
Expand All @@ -2117,6 +2120,7 @@ static void ftdi_set_termios(struct tty_struct *tty,
(termios->c_cflag & (CSIZE|PARODD|PARENB|CMSPAR|CSTOPB)))
goto no_data_parity_stop_changes;

no_skip:
/* Set number of data bits, parity, stop bits */

urb_value = 0;
Expand Down

0 comments on commit 7e32b8a

Please sign in to comment.