summaryrefslogtreecommitdiff
path: root/drivers/input/touchscreen
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2013-03-28 12:14:42 +0400
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2013-03-31 11:21:34 +0400
commit8efcc503231dd50800f874725961dfdae5f08f52 (patch)
tree4005304975c3d1f1a1d4999522b9d528d18a8c2d /drivers/input/touchscreen
parent84c0c9f56ac7ce8036c0a70383dba1789138e859 (diff)
downloadlinux-8efcc503231dd50800f874725961dfdae5f08f52.tar.xz
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')
-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 */