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 19:07:46 -0400 |
commit | 69fee6885f6042d0d3d3773b208a84e7bb161650 (patch) | |
tree | f39b2d9d53b883442b437a4ce988321f43db5eb5 /drivers/char | |
parent | e359a4e38d229d53e28905863a1fabf41debd591 (diff) |
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.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) | |||
2347 | printk("%s(%d):mgslpc_close(%s) entry, count=%d\n", | 2347 | printk("%s(%d):mgslpc_close(%s) entry, count=%d\n", |
2348 | __FILE__, __LINE__, info->device_name, port->count); | 2348 | __FILE__, __LINE__, info->device_name, port->count); |
2349 | 2349 | ||
2350 | WARN_ON(!port->count); | ||
2351 | |||
2352 | if (tty_port_close_start(port, tty, filp) == 0) | 2350 | if (tty_port_close_start(port, tty, filp) == 0) |
2353 | goto cleanup; | 2351 | goto cleanup; |
2354 | 2352 | ||