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>
This commit is contained in:
Sachin Kamat 2013-03-28 01:14:42 -07:00 committed by Dmitry Torokhov
parent 84c0c9f56a
commit 8efcc50323
1 changed files with 1 additions and 2 deletions

View File

@ -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 */