diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2013-03-28 12:14:42 +0400 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2013-03-31 11:21:34 +0400 |
commit | 8efcc503231dd50800f874725961dfdae5f08f52 (patch) | |
tree | 4005304975c3d1f1a1d4999522b9d528d18a8c2d /drivers/input/touchscreen/edt-ft5x06.c | |
parent | 84c0c9f56ac7ce8036c0a70383dba1789138e859 (diff) | |
download | linux-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/edt-ft5x06.c')
-rw-r--r-- | drivers/input/touchscreen/edt-ft5x06.c | 3 |
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 */ |