summaryrefslogtreecommitdiff
path: root/drivers/net/mctp
diff options
context:
space:
mode:
authorJeremy Kerr <jk@codeconstruct.com.au>2021-11-25 14:07:39 +0800
committerJakub Kicinski <kuba@kernel.org>2021-11-25 19:40:39 -0800
commitd1c99f365a1f51f9c7e76ea3c52605cf740b3251 (patch)
tree919d0cc29f9458a9d2c183ebf6636cc8adbc063d /drivers/net/mctp
parentd154cd078ac2d24374e872f3224bf44894867b0a (diff)
downloadlwn-d1c99f365a1f51f9c7e76ea3c52605cf740b3251.tar.gz
lwn-d1c99f365a1f51f9c7e76ea3c52605cf740b3251.zip
mctp: serial: remove unnecessary ldisc data check
Jiri assures me that a ldisc->open with tty->disc_data set should never happen, so this check doesn't do anything. Reported-by: Jiri Slaby <jirislaby@kernel.org> Signed-off-by: Jeremy Kerr <jk@codeconstruct.com.au> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/mctp')
-rw-r--r--drivers/net/mctp/mctp-serial.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/net/mctp/mctp-serial.c b/drivers/net/mctp/mctp-serial.c
index b0e14a63b10d..eaa6fb3224bc 100644
--- a/drivers/net/mctp/mctp-serial.c
+++ b/drivers/net/mctp/mctp-serial.c
@@ -439,9 +439,6 @@ static int mctp_serial_open(struct tty_struct *tty)
if (!tty->ops->write)
return -EOPNOTSUPP;
- if (tty->disc_data)
- return -EEXIST;
-
idx = ida_alloc(&mctp_serial_ida, GFP_KERNEL);
if (idx < 0)
return idx;