diff options
author | Jeremy Kerr <jk@codeconstruct.com.au> | 2021-11-25 07:07:39 +0100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2021-11-26 04:40:39 +0100 |
commit | d1c99f365a1f51f9c7e76ea3c52605cf740b3251 (patch) | |
tree | 919d0cc29f9458a9d2c183ebf6636cc8adbc063d /drivers/net/mctp | |
parent | mctp: serial: enforce fixed MTU (diff) | |
download | linux-d1c99f365a1f51f9c7e76ea3c52605cf740b3251.tar.xz linux-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.c | 3 |
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; |