diff options
author | Sudip Mukherjee <sudipm.mukherjee@gmail.com> | 2016-04-06 11:44:04 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-04-30 09:26:55 -0700 |
commit | 423314337acde8ddda6324f0917b306642b3ef6c (patch) | |
tree | b7a9fd6ee9f5664a776eb8b746cb11b562fd2cdd /drivers/tty/synclink.c | |
parent | 76bbdcb35ebb0e9c5315c4b249cd883cca9e065d (diff) | |
download | linux-stable-423314337acde8ddda6324f0917b306642b3ef6c.tar.gz linux-stable-423314337acde8ddda6324f0917b306642b3ef6c.tar.bz2 linux-stable-423314337acde8ddda6324f0917b306642b3ef6c.zip |
tty: synclink: remove unneeded test
We reach this point of code after a test of 'info->port.tty->hw_stopped',
we do not need to test for 'info->port.tty' as it is obvious that
info->port.tty is not NULL now, we have already dereferenced it.
Signed-off-by: Sudip Mukherjee <sudip.mukherjee@codethink.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/synclink.c')
-rw-r--r-- | drivers/tty/synclink.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/tty/synclink.c b/drivers/tty/synclink.c index bc4bc1ff775e..00d91d12e6f1 100644 --- a/drivers/tty/synclink.c +++ b/drivers/tty/synclink.c @@ -1361,8 +1361,7 @@ static void mgsl_isr_io_pin( struct mgsl_struct *info ) if (status & MISCSTATUS_CTS) { if ( debug_level >= DEBUG_LEVEL_ISR ) printk("CTS tx start..."); - if (info->port.tty) - info->port.tty->hw_stopped = 0; + info->port.tty->hw_stopped = 0; usc_start_transmitter(info); info->pending_bh |= BH_TRANSMIT; return; |