浏览代码

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 <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Peter Hurley 11 年之前
父节点
当前提交
69fee6885f
共有 1 个文件被更改,包括 0 次插入2 次删除
  1. 0 2
      drivers/char/pcmcia/synclink_cs.c

+ 0 - 2
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;