diff options
author | Johan Hovold <jhovold@gmail.com> | 2013-06-26 18:47:20 +0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-07-24 03:21:50 +0400 |
commit | a0b9281e29fb8942baddf2ce4067eb611f4f9c01 (patch) | |
tree | 72fc6c91ba36f532eecea29a8a645162aae58398 /drivers/usb/serial/oti6858.c | |
parent | 4ce10417e840ab58717d2c91986d8684c6858c3f (diff) | |
download | linux-a0b9281e29fb8942baddf2ce4067eb611f4f9c01.tar.xz |
USB: serial: remove defensive test from set_termios
Remove defensive test from set_termios which is never called with a NULL
tty.
Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/serial/oti6858.c')
-rw-r--r-- | drivers/usb/serial/oti6858.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/usb/serial/oti6858.c b/drivers/usb/serial/oti6858.c index 7e3e0782e51f..cf509c8c1aa1 100644 --- a/drivers/usb/serial/oti6858.c +++ b/drivers/usb/serial/oti6858.c @@ -411,9 +411,6 @@ static void oti6858_set_termios(struct tty_struct *tty, __le16 divisor; int br; - if (!tty) - return; - cflag = tty->termios.c_cflag; spin_lock_irqsave(&priv->lock, flags); |