commit | ef510bea5f6c16663428d914699935bdd7913de8 | [log] [tgz] |
---|---|---|
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | Thu Nov 24 14:18:55 2016 +0200 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Mon Nov 28 08:29:34 2016 +0100 |
tree | 41fe7486117b40f78d795a73a1f3236cab1493ac | |
parent | b8106454733806b56c87493042da77b3b8b48d22 [diff] |
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>