aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJiri Slaby <jslaby@suse.cz>2013-01-03 09:53:09 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-01-16 01:43:15 -0500
commitcc5ab61086334e72afdf970c032fecf5e5fcf7ca (patch)
treee21fb997c8c5b4bebca8eb73d4368c959b58c152
parentdabe2c1385cd53d91c0a318c0fb7d2c015c61458 (diff)
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>
-rw-r--r--drivers/char/pcmcia/synclink_cs.c3
-rw-r--r--drivers/tty/synclink_gt.c2
-rw-r--r--drivers/tty/synclinkmp.c3
3 files changed, 0 insertions, 8 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)
765 struct tty_struct *tty; 765 struct tty_struct *tty;
766 int action; 766 int action;
767 767
768 if (!info)
769 return;
770
771 if (debug_level >= DEBUG_LEVEL_BH) 768 if (debug_level >= DEBUG_LEVEL_BH)
772 printk( "%s(%d):bh_handler(%s) entry\n", 769 printk( "%s(%d):bh_handler(%s) entry\n",
773 __FILE__,__LINE__,info->device_name); 770 __FILE__,__LINE__,info->device_name);
diff --git a/drivers/tty/synclink_gt.c b/drivers/tty/synclink_gt.c
index fced6acc74ee..ac8599a76820 100644
--- a/drivers/tty/synclink_gt.c
+++ b/drivers/tty/synclink_gt.c
@@ -1957,8 +1957,6 @@ static void bh_handler(struct work_struct *work)
1957 struct slgt_info *info = container_of(work, struct slgt_info, task); 1957 struct slgt_info *info = container_of(work, struct slgt_info, task);
1958 int action; 1958 int action;
1959 1959
1960 if (!info)
1961 return;
1962 info->bh_running = true; 1960 info->bh_running = true;
1963 1961
1964 while((action = bh_action(info))) { 1962 while((action = bh_action(info))) {
diff --git a/drivers/tty/synclinkmp.c b/drivers/tty/synclinkmp.c
index e4a2904af565..545402509cab 100644
--- a/drivers/tty/synclinkmp.c
+++ b/drivers/tty/synclinkmp.c
@@ -2007,9 +2007,6 @@ static void bh_handler(struct work_struct *work)
2007 SLMP_INFO *info = container_of(work, SLMP_INFO, task); 2007 SLMP_INFO *info = container_of(work, SLMP_INFO, task);
2008 int action; 2008 int action;
2009 2009
2010 if (!info)
2011 return;
2012
2013 if ( debug_level >= DEBUG_LEVEL_BH ) 2010 if ( debug_level >= DEBUG_LEVEL_BH )
2014 printk( "%s(%d):%s bh_handler() entry\n", 2011 printk( "%s(%d):%s bh_handler() entry\n",
2015 __FILE__,__LINE__,info->device_name); 2012 __FILE__,__LINE__,info->device_name);