summaryrefslogtreecommitdiffstats
path: root/drivers/tty
diff options
context:
space:
mode:
authorChengguang Xu <cgxu519@gmx.com>2019-02-18 16:31:04 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-02-19 13:42:07 +0100
commitb289c496e52a9bcd5de098dd13e6609859d5a061 (patch)
treebeab6d8b5fd62f55c9faed9afd9db192c9ff7666 /drivers/tty
parent361bf8a9d88d50a5d7444e5e0cb1c5bd517e809d (diff)
downloadlinux-b289c496e52a9bcd5de098dd13e6609859d5a061.tar.bz2
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>
Diffstat (limited to 'drivers/tty')
-rw-r--r--drivers/tty/serial/serial_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serial/serial_core.c b/drivers/tty/serial/serial_core.c
index 556f50aa1b58..351843f847c0 100644
--- a/drivers/tty/serial/serial_core.c
+++ b/drivers/tty/serial/serial_core.c
@@ -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",