Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 69fee688 authored by Peter Hurley's avatar Peter Hurley Committed by Greg Kroah-Hartman
Browse files

char: synclink: Remove WARN_ON for bad port count



tty_port_close_start() already validates the port counts and issues
a diagnostic if validation fails.

Signed-off-by: default avatarPeter Hurley <peter@hurleysoftware.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent e359a4e3
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -2347,8 +2347,6 @@ static void mgslpc_close(struct tty_struct *tty, struct file * filp)
		printk("%s(%d):mgslpc_close(%s) entry, count=%d\n",
			 __FILE__, __LINE__, info->device_name, port->count);

	WARN_ON(!port->count);

	if (tty_port_close_start(port, tty, filp) == 0)
		goto cleanup;