提交 4aaf5046 编写于 作者: J Jiri Slaby 提交者: Dmitry Torokhov

Input: tps6507x-ts - remove unneeded NULL test

Stanse found that tsc is dereferenced earlier than checked for being
NULL in tps6507x_ts_remove. Remove the test because there is no way
for tsc to be NULL there.
Signed-off-by: NJiri Slaby <jslaby@suse.cz>
Signed-off-by: NDmitry Torokhov <dtor@mail.ru>
上级 fb76dd10
......@@ -355,9 +355,6 @@ static int __devexit tps6507x_ts_remove(struct platform_device *pdev)
struct tps6507x_ts *tsc = tps6507x_dev->ts;
struct input_dev *input_dev = tsc->input_dev;
if (!tsc)
return 0;
cancel_delayed_work_sync(&tsc->work);
destroy_workqueue(tsc->wq);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册