Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Sachin Kamat and committed by
Dmitry Torokhov
8efcc503 84c0c9f5

+1 -2
+1 -2
drivers/input/touchscreen/edt-ft5x06.c
··· 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 */