diff options
author | Peter Hurley <peter@hurleysoftware.com> | 2014-06-16 09:17:07 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-07-10 16:07:46 -0700 |
commit | 69fee6885f6042d0d3d3773b208a84e7bb161650 (patch) | |
tree | f39b2d9d53b883442b437a4ce988321f43db5eb5 /drivers/char/pcmcia | |
parent | e359a4e38d229d53e28905863a1fabf41debd591 (diff) | |
download | linux-69fee6885f6042d0d3d3773b208a84e7bb161650.tar.gz linux-69fee6885f6042d0d3d3773b208a84e7bb161650.tar.bz2 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/pcmcia')
-rw-r--r-- | drivers/char/pcmcia/synclink_cs.c | 2 |
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; |