diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2016-11-24 15:18:55 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-11-28 10:29:34 +0300 |
commit | ef510bea5f6c16663428d914699935bdd7913de8 (patch) | |
tree | 41fe7486117b40f78d795a73a1f3236cab1493ac /net/dccp | |
parent | b8106454733806b56c87493042da77b3b8b48d22 (diff) | |
download | linux-ef510bea5f6c16663428d914699935bdd7913de8.tar.xz |
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>
Diffstat (limited to 'net/dccp')
0 files changed, 0 insertions, 0 deletions