summaryrefslogtreecommitdiff
path: root/drivers/char
diff options
context:
space:
mode:
authorJiri Slaby <jslaby@suse.cz>2013-01-03 18:53:09 +0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-01-16 10:43:15 +0400
commitcc5ab61086334e72afdf970c032fecf5e5fcf7ca (patch)
treee21fb997c8c5b4bebca8eb73d4368c959b58c152 /drivers/char
parentdabe2c1385cd53d91c0a318c0fb7d2c015c61458 (diff)
downloadlinux-cc5ab61086334e72afdf970c032fecf5e5fcf7ca.tar.xz
TTY: synclink, remove unneeded tests
info in synclink bottom-halves cannot be NULL because it is taken from work_struct using container_of. Remove the tests. Signed-off-by: Jiri Slaby <jslaby@suse.cz> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/char')
-rw-r--r--drivers/char/pcmcia/synclink_cs.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/char/pcmcia/synclink_cs.c b/drivers/char/pcmcia/synclink_cs.c
index f334aec65fc7..34e52ed0ea8c 100644
--- a/drivers/char/pcmcia/synclink_cs.c
+++ b/drivers/char/pcmcia/synclink_cs.c
@@ -765,9 +765,6 @@ static void bh_handler(struct work_struct *work)
struct tty_struct *tty;
int action;
- if (!info)
- return;
-
if (debug_level >= DEBUG_LEVEL_BH)
printk( "%s(%d):bh_handler(%s) entry\n",
__FILE__,__LINE__,info->device_name);