]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/bridge: anx7625: Remove redundant 'flush_workqueue()' calls
authorChen Ni <nichen@iscas.ac.cn>
Wed, 12 Mar 2025 09:01:32 +0000 (17:01 +0800)
committerDouglas Anderson <dianders@chromium.org>
Thu, 27 Mar 2025 21:04:33 +0000 (14:04 -0700)
'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
drivers/gpu/drm/bridge/analogix/anx7625.c

index 0b61e77c0398bbce3ecf55753dde71a27eda8fe5..866806e908cdb0b9bed8467489094cb2712fa64a 100644 (file)
@@ -2772,7 +2772,6 @@ static void anx7625_i2c_remove(struct i2c_client *client)
 
        if (platform->hdcp_workqueue) {
                cancel_delayed_work(&platform->hdcp_work);
-               flush_workqueue(platform->hdcp_workqueue);
                destroy_workqueue(platform->hdcp_workqueue);
        }