diff options
author | Tang Bin <tangbin@cmss.chinamobile.com> | 2021-08-23 19:07:54 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-08-26 14:51:04 +0200 |
commit | fa934fc1a8679f0704dddaefb6946c3da26c58a5 (patch) | |
tree | aef3e7e8f61e1401a7fc83fc0033d23c3826f11c /drivers/tty/serial/msm_serial.c | |
parent | bd5305dcabbc208560521bc0617f0a82715e41c9 (diff) | |
download | lwn-fa934fc1a8679f0704dddaefb6946c3da26c58a5.tar.gz lwn-fa934fc1a8679f0704dddaefb6946c3da26c58a5.zip |
tty: serial: linflexuart: Remove redundant check to simplify the code
In the function uart_add_one_port(), it can return zero or non-zero,
so remove redundant check to simplify the code.
Signed-off-by: Zhang Shengju <zhangshengju@cmss.chinamobile.com>
Signed-off-by: Tang Bin <tangbin@cmss.chinamobile.com>
Link: https://lore.kernel.org/r/20210823110754.11232-1-tangbin@cmss.chinamobile.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial/msm_serial.c')
0 files changed, 0 insertions, 0 deletions