diff mbox

INPUT: tps6507x-ts, remove unneeded NULL test

Message ID 1277206862-27146-1-git-send-email-jslaby@suse.cz (mailing list archive)
State Accepted
Commit 4aaf504670e38da9cb929988cdce05648fa635a7
Headers show

Commit Message

Jiri Slaby June 22, 2010, 11:41 a.m. UTC
None
diff mbox

Patch

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);