summaryrefslogtreecommitdiffstats
path: root/drivers/char
diff options
context:
space:
mode:
authorPeter Hurley <peter@hurleysoftware.com>2014-06-16 09:17:07 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-07-10 16:07:46 -0700
commit69fee6885f6042d0d3d3773b208a84e7bb161650 (patch)
treef39b2d9d53b883442b437a4ce988321f43db5eb5 /drivers/char
parente359a4e38d229d53e28905863a1fabf41debd591 (diff)
downloadblackbird-op-linux-69fee6885f6042d0d3d3773b208a84e7bb161650.tar.gz
blackbird-op-linux-69fee6885f6042d0d3d3773b208a84e7bb161650.zip
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>
Diffstat (limited to 'drivers/char')
-rw-r--r--drivers/char/pcmcia/synclink_cs.c2
1 files changed, 0 insertions, 2 deletions
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;
OpenPOWER on IntegriCloud