Commit 8efcc503 authored by Sachin Kamat's avatar Sachin Kamat Committed by Dmitry Torokhov

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: default avatarSachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent 84c0c9f5
......@@ -440,7 +440,6 @@ static int edt_ft5x06_work_mode(struct edt_ft5x06_ts_data *tsdata)
return -EIO;
}
if (tsdata->raw_buffer)
kfree(tsdata->raw_buffer);
tsdata->raw_buffer = NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment