diff options
author | Jiri Slaby <jslaby@suse.cz> | 2013-03-07 07:12:26 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-03-18 19:17:20 -0400 |
commit | 049b539b39977fc9343056435eba568fc7779970 (patch) | |
tree | f8b2a64d4e491c3ed034041a84c888addc6e9c01 | |
parent | b1622e0ac1b18632cff1e9af807fcdcb2397071b (diff) |
TTY: synclink, remove superfluous check
info is obtained by container_of. It can never be NULL. So do not test
that.
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/tty/synclink.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/tty/synclink.c b/drivers/tty/synclink.c index 8983276aa35e..72d607101f90 100644 --- a/drivers/tty/synclink.c +++ b/drivers/tty/synclink.c | |||
@@ -1058,9 +1058,6 @@ static void mgsl_bh_handler(struct work_struct *work) | |||
1058 | container_of(work, struct mgsl_struct, task); | 1058 | container_of(work, struct mgsl_struct, task); |
1059 | int action; | 1059 | int action; |
1060 | 1060 | ||
1061 | if (!info) | ||
1062 | return; | ||
1063 | |||
1064 | if ( debug_level >= DEBUG_LEVEL_BH ) | 1061 | if ( debug_level >= DEBUG_LEVEL_BH ) |
1065 | printk( "%s(%d):mgsl_bh_handler(%s) entry\n", | 1062 | printk( "%s(%d):mgsl_bh_handler(%s) entry\n", |
1066 | __FILE__,__LINE__,info->device_name); | 1063 | __FILE__,__LINE__,info->device_name); |