Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/bridge: anx7625: Remove redundant 'flush_workqueue()' calls

'destroy_workqueue()' already drains the queue before destroying it, so
there is no need to flush it explicitly.

Remove the redundant 'flush_workqueue()' calls.

This was generated with coccinelle:

@@
expression E;
@@
- flush_workqueue(E);
destroy_workqueue(E);

Signed-off-by: Chen Ni <nichen@iscas.ac.cn>
Reviewed-by: Robert Foss <rfoss@kernel.org>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Douglas Anderson <dianders@chromium.org>
Link: https://lore.kernel.org/r/20250312090132.1624445-1-nichen@iscas.ac.cn

authored by

Chen Ni and committed by
Douglas Anderson
c1031442 18225324

-1
-1
drivers/gpu/drm/bridge/analogix/anx7625.c
··· 2772 2772 2773 2773 if (platform->hdcp_workqueue) { 2774 2774 cancel_delayed_work(&platform->hdcp_work); 2775 - flush_workqueue(platform->hdcp_workqueue); 2776 2775 destroy_workqueue(platform->hdcp_workqueue); 2777 2776 } 2778 2777