char: synclink: Remove WARN_ON for bad port count
authorPeter Hurley <peter@hurleysoftware.com>
Mon, 16 Jun 2014 13:17:07 +0000 (09:17 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Jul 2014 23:07:46 +0000 (16:07 -0700)
tty_port_close_start() already validates the port counts and issues
a diagnostic if validation fails.

Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/char/pcmcia/synclink_cs.c

index a63970f..0ea9986 100644 (file)
@@ -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;