mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-27 21:14:44 +08:00
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>
This commit is contained in:
parent
d154cd078a
commit
d1c99f365a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user