forked from luck/tmp_suning_uos_patched
tty: serial: remove redundant likely annotation
unlikely has already included in IS_ERR(), so just remove redundant likely annotation. Signed-off-by: Chengguang Xu <cgxu519@gmx.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
361bf8a9d8
commit
b289c496e5
|
@ -2844,7 +2844,7 @@ int uart_add_one_port(struct uart_driver *drv, struct uart_port *uport)
|
|||
*/
|
||||
tty_dev = tty_port_register_device_attr_serdev(port, drv->tty_driver,
|
||||
uport->line, uport->dev, port, uport->tty_groups);
|
||||
if (likely(!IS_ERR(tty_dev))) {
|
||||
if (!IS_ERR(tty_dev)) {
|
||||
device_set_wakeup_capable(tty_dev, 1);
|
||||
} else {
|
||||
dev_err(uport->dev, "Cannot register tty device on line %d\n",
|
||||
|
|
Loading…
Reference in New Issue
Block a user