Commit cc5ab610 authored by Jiri Slaby's avatar Jiri Slaby Committed by Greg Kroah-Hartman

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: default avatarJiri Slaby <jslaby@suse.cz>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent dabe2c13
...@@ -765,9 +765,6 @@ static void bh_handler(struct work_struct *work) ...@@ -765,9 +765,6 @@ static void bh_handler(struct work_struct *work)
struct tty_struct *tty; struct tty_struct *tty;
int action; int action;
if (!info)
return;
if (debug_level >= DEBUG_LEVEL_BH) if (debug_level >= DEBUG_LEVEL_BH)
printk( "%s(%d):bh_handler(%s) entry\n", printk( "%s(%d):bh_handler(%s) entry\n",
__FILE__,__LINE__,info->device_name); __FILE__,__LINE__,info->device_name);
......
...@@ -1957,8 +1957,6 @@ static void bh_handler(struct work_struct *work) ...@@ -1957,8 +1957,6 @@ static void bh_handler(struct work_struct *work)
struct slgt_info *info = container_of(work, struct slgt_info, task); struct slgt_info *info = container_of(work, struct slgt_info, task);
int action; int action;
if (!info)
return;
info->bh_running = true; info->bh_running = true;
while((action = bh_action(info))) { while((action = bh_action(info))) {
......
...@@ -2007,9 +2007,6 @@ static void bh_handler(struct work_struct *work) ...@@ -2007,9 +2007,6 @@ static void bh_handler(struct work_struct *work)
SLMP_INFO *info = container_of(work, SLMP_INFO, task); SLMP_INFO *info = container_of(work, SLMP_INFO, task);
int action; int action;
if (!info)
return;
if ( debug_level >= DEBUG_LEVEL_BH ) if ( debug_level >= DEBUG_LEVEL_BH )
printk( "%s(%d):%s bh_handler() entry\n", printk( "%s(%d):%s bh_handler() entry\n",
__FILE__,__LINE__,info->device_name); __FILE__,__LINE__,info->device_name);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment