]> git.karo-electronics.de Git - linux-beck.git/commit
serial: core: don't check port twice in a row
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 24 Nov 2016 12:18:55 +0000 (14:18 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 28 Nov 2016 07:29:34 +0000 (08:29 +0100)
commitef510bea5f6c16663428d914699935bdd7913de8
tree41fe7486117b40f78d795a73a1f3236cab1493ac
parentb8106454733806b56c87493042da77b3b8b48d22
serial: core: don't check port twice in a row

There is no need to check port for NULL in uart_port_deref() since we call it
only when port is defined.

There are few places that violate this. Fix them here as well.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/serial_core.c