Thread (3 messages) 3 messages, 3 authors, 2013-08-26
STALE4781d

[PATCH v2] Input: cyttsp4 - remove useless NULL test from cyttsp4_watchdog_timer()

From: Wei Yongjun <hidden>
Date: 2013-08-26 06:00:14
Subsystem: cyttsp touchscreen driver, input (keyboard, mouse, joystick, touchscreen) drivers, the rest · Maintainers: Linus Walleij, Dmitry Torokhov, Linus Torvalds

From: Wei Yongjun <redacted>

Remove useless NULL test from cyttsp4_watchdog_timer().

Signed-off-by: Wei Yongjun <redacted>
---
v1 -> v2: remove NULL test instead.
  (was: Input: cyttsp4 - fix potential NULL pointer dereference in cyttsp4_watchdog_timer())
---
 drivers/input/touchscreen/cyttsp4_core.c | 3 ---
 1 file changed, 3 deletions(-)
diff --git a/drivers/input/touchscreen/cyttsp4_core.c b/drivers/input/touchscreen/cyttsp4_core.c
index edcf799..22719d0 100644
--- a/drivers/input/touchscreen/cyttsp4_core.c
+++ b/drivers/input/touchscreen/cyttsp4_core.c
@@ -1246,9 +1246,6 @@ static void cyttsp4_watchdog_timer(unsigned long handle)
 
 	dev_vdbg(cd->dev, "%s: Watchdog timer triggered\n", __func__);
 
-	if (!cd)
-		return;
-
 	if (!work_pending(&cd->watchdog_work))
 		schedule_work(&cd->watchdog_work);
 
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help