From: Sudip Mukherjee Date: Wed, 6 Apr 2016 10:44:04 +0000 (+0100) Subject: tty: synclink: remove unneeded test X-Git-Tag: v4.14-rc1~3185^2~32 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=423314337acde8ddda6324f0917b306642b3ef6c;p=platform%2Fkernel%2Flinux-rpi.git 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/tty/synclink.c b/drivers/tty/synclink.c index bc4bc1f..00d91d12 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;