tty: serial: linflexuart: Remove redundant check to simplify the code
authorTang Bin <tangbin@cmss.chinamobile.com>
Mon, 23 Aug 2021 11:07:54 +0000 (19:07 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Aug 2021 12:51:04 +0000 (14:51 +0200)
commitfa934fc1a8679f0704dddaefb6946c3da26c58a5
treeaef3e7e8f61e1401a7fc83fc0033d23c3826f11c
parentbd5305dcabbc208560521bc0617f0a82715e41c9
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>
drivers/tty/serial/fsl_linflexuart.c