summaryrefslogtreecommitdiff
path: root/drivers/input/touchscreen
diff options
context:
space:
mode:
authorJiri Slaby <jslaby@suse.cz>2010-06-22 18:25:03 (GMT)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2010-06-23 16:44:51 (GMT)
commit4aaf504670e38da9cb929988cdce05648fa635a7 (patch)
treee140a5fc1c3031edcc9ae9f5ca82273ae3ba1e5a /drivers/input/touchscreen
parentfb76dd10b91146e9cefbb3cd4e6812c5a95ee43b (diff)
downloadlinux-4aaf504670e38da9cb929988cdce05648fa635a7.tar.xz
Input: tps6507x-ts - remove unneeded NULL test
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>
Diffstat (limited to 'drivers/input/touchscreen')
-rw-r--r--drivers/input/touchscreen/tps6507x-ts.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/input/touchscreen/tps6507x-ts.c b/drivers/input/touchscreen/tps6507x-ts.c
index 5b70a14..a644d18 100644
--- a/drivers/input/touchscreen/tps6507x-ts.c
+++ b/drivers/input/touchscreen/tps6507x-ts.c
@@ -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);