From: Peter Hurley Date: Mon, 16 Jun 2014 13:17:07 +0000 (-0400) Subject: char: synclink: Remove WARN_ON for bad port count X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=69fee6885f6042d0d3d3773b208a84e7bb161650;p=linux-beck.git 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: Peter Hurley Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/char/pcmcia/synclink_cs.c b/drivers/char/pcmcia/synclink_cs.c index a63970f76967..0ea9986059af 100644 --- a/drivers/char/pcmcia/synclink_cs.c +++ b/drivers/char/pcmcia/synclink_cs.c @@ -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;