diff options
author | Dan Carpenter <[email protected]> | 2013-07-02 20:32:53 -0700 |
---|---|---|
committer | Dmitry Torokhov <[email protected]> | 2013-07-02 20:39:20 -0700 |
commit | 7c4c018aadadf1db2c27d6b9f0280700a2619861 (patch) | |
tree | 4c6478d51d1d3e92c62fcac7a6d422e8cff8d257 | |
parent | 0fb82ec0268b5e46b0fefc677c9fa62707c61c67 (diff) |
Input: cyttsp4 - silence NULL dereference warning
If "cd" were NULL then we would dereference it when we print the error
message. Fortunately enough, it can't ever be NULL so we can remove
those lines.
Signed-off-by: Dan Carpenter <[email protected]>
Signed-off-by: Dmitry Torokhov <[email protected]>
-rw-r--r-- | drivers/input/touchscreen/cyttsp4_core.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/input/touchscreen/cyttsp4_core.c b/drivers/input/touchscreen/cyttsp4_core.c index 7aa4a349a07e..851e3ff80437 100644 --- a/drivers/input/touchscreen/cyttsp4_core.c +++ b/drivers/input/touchscreen/cyttsp4_core.c @@ -1450,11 +1450,6 @@ static void cyttsp4_watchdog_work(struct work_struct *work) u8 *mode; int retval; - if (cd == NULL) { - dev_err(cd->dev, "%s: NULL context pointer\n", __func__); - return; - } - mutex_lock(&cd->system_lock); retval = cyttsp4_load_status_regs(cd); if (retval < 0) { |