Commit d1c99f36 authored by Jeremy Kerr's avatar Jeremy Kerr Committed by Jakub Kicinski
Browse files

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: default avatarJiri Slaby <jirislaby@kernel.org>
Signed-off-by: default avatarJeremy Kerr <jk@codeconstruct.com.au>
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent d154cd07
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -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;