summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorran jianping <ran.jianping@zte.com.cn>2022-04-25 04:23:40 +0300
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2022-04-25 04:25:09 +0300
commit40f6d265665abf511af310454a0b9d64f8959fd6 (patch)
treef5303fbb6f6abdf8347a03b04e67315740694d47
parent28e26e927cf4a37fb84fb8fd9893c6a858676b87 (diff)
downloadlinux-40f6d265665abf511af310454a0b9d64f8959fd6.tar.xz
Input: synaptics-rmi4 - remove unnecessary flush_workqueue()
All work currently pending will be done first by calling destroy_workqueue, so there is unnecessary to flush it explicitly. Reported-by: Zeal Robot <zealci@zte.com.cn> Signed-off-by: ran jianping <ran.jianping@zte.com.cn> Link: https://lore.kernel.org/r/20220422093304.2781183-1-ran.jianping@zte.com.cn Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
-rw-r--r--drivers/input/rmi4/rmi_f54.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/input/rmi4/rmi_f54.c b/drivers/input/rmi4/rmi_f54.c
index 93b328c796c6..c5ce907535ef 100644
--- a/drivers/input/rmi4/rmi_f54.c
+++ b/drivers/input/rmi4/rmi_f54.c
@@ -733,7 +733,6 @@ remove_v4l2:
v4l2_device_unregister(&f54->v4l2);
remove_wq:
cancel_delayed_work_sync(&f54->work);
- flush_workqueue(f54->workqueue);
destroy_workqueue(f54->workqueue);
return ret;
}