diff options
author | Jiri Slaby <jslaby@suse.cz> | 2013-01-03 09:53:09 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-01-16 01:43:15 -0500 |
commit | cc5ab61086334e72afdf970c032fecf5e5fcf7ca (patch) | |
tree | e21fb997c8c5b4bebca8eb73d4368c959b58c152 /drivers/tty/synclink_gt.c | |
parent | dabe2c1385cd53d91c0a318c0fb7d2c015c61458 (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>
Diffstat (limited to 'drivers/tty/synclink_gt.c')
-rw-r--r-- | drivers/tty/synclink_gt.c | 2 |
1 files changed, 0 insertions, 2 deletions
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))) { |