mirror of
https://github.com/torvalds/linux.git
synced 2024-11-14 16:12:02 +00:00
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>
This commit is contained in:
parent
76bbdcb35e
commit
423314337a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user