提交 8efcc503 编写于 作者: S Sachin Kamat 提交者: 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: NSachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: NDmitry Torokhov <dmitry.torokhov@gmail.com>
上级 84c0c9f5
......@@ -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 */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册