Skip to content

Commit

Permalink
Input: tps6507x-ts - remove unneeded NULL test
Browse files Browse the repository at this point in the history
Stanse found that tsc is dereferenced earlier than checked for being
NULL in tps6507x_ts_remove. Remove the test because there is no way
for tsc to be NULL there.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
  • Loading branch information
Jiri Slaby authored and Dmitry Torokhov committed Jun 23, 2010
1 parent fb76dd1 commit 4aaf504
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/input/touchscreen/tps6507x-ts.c
Original file line number Diff line number Diff line change
Expand Up @@ -355,9 +355,6 @@ static int __devexit tps6507x_ts_remove(struct platform_device *pdev)
struct tps6507x_ts *tsc = tps6507x_dev->ts;
struct input_dev *input_dev = tsc->input_dev;

if (!tsc)
return 0;

cancel_delayed_work_sync(&tsc->work);
destroy_workqueue(tsc->wq);

Expand Down

0 comments on commit 4aaf504

Please sign in to comment.