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:
parent
84c0c9f56a
commit
8efcc50323
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue