diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2013-03-28 09:14:42 +0100 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2013-03-31 09:21:34 +0200 |
commit | 8efcc503231dd50800f874725961dfdae5f08f52 (patch) | |
tree | 4005304975c3d1f1a1d4999522b9d528d18a8c2d /drivers/input | |
parent | Input: ad714x - add CONFIG_PM_SLEEP to suspend/resume functions (diff) | |
download | linux-8efcc503231dd50800f874725961dfdae5f08f52.tar.xz 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')
-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 */ |