summaryrefslogtreecommitdiffstats
path: root/drivers/input/touchscreen/edt-ft5x06.c
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2013-03-28 01:14:42 -0700
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2013-03-31 00:21:34 -0700
commit8efcc503231dd50800f874725961dfdae5f08f52 (patch)
tree4005304975c3d1f1a1d4999522b9d528d18a8c2d /drivers/input/touchscreen/edt-ft5x06.c
parent84c0c9f56ac7ce8036c0a70383dba1789138e859 (diff)
downloadtalos-op-linux-8efcc503231dd50800f874725961dfdae5f08f52.tar.gz
talos-op-linux-8efcc503231dd50800f874725961dfdae5f08f52.zip
Input: edt-ft5x06 - remove redundant null check before kfree
kfree on a null pointer is a no-op. Hence null check is not necessary. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/touchscreen/edt-ft5x06.c')
-rw-r--r--drivers/input/touchscreen/edt-ft5x06.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/input/touchscreen/edt-ft5x06.c b/drivers/input/touchscreen/edt-ft5x06.c
index a9170157b442..83fa1b15a97f 100644
--- a/drivers/input/touchscreen/edt-ft5x06.c
+++ b/drivers/input/touchscreen/edt-ft5x06.c
@@ -440,8 +440,7 @@ static int edt_ft5x06_work_mode(struct edt_ft5x06_ts_data *tsdata)
return -EIO;
}
- if (tsdata->raw_buffer)
- kfree(tsdata->raw_buffer);
+ kfree(tsdata->raw_buffer);
tsdata->raw_buffer = NULL;
/* restore parameters */
OpenPOWER on IntegriCloud