Commit 8efcc503231dd50800f874725961dfdae5f08f52

Authored by Sachin Kamat
Committed by Dmitry Torokhov
1 parent 84c0c9f56a

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>

Showing 1 changed file with 1 additions and 2 deletions Side-by-side Diff

drivers/input/touchscreen/edt-ft5x06.c
... ... @@ -440,8 +440,7 @@
440 440 return -EIO;
441 441 }
442 442  
443   - if (tsdata->raw_buffer)
444   - kfree(tsdata->raw_buffer);
  443 + kfree(tsdata->raw_buffer);
445 444 tsdata->raw_buffer = NULL;
446 445  
447 446 /* restore parameters */