Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4aaf5046 authored by Jiri Slaby's avatar Jiri Slaby Committed by Dmitry Torokhov
Browse files

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: default avatarJiri Slaby <jslaby@suse.cz>
Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
parent fb76dd10
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -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);