usb: Remove redundant 'flush_workqueue()' calls
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Fri, 12 Nov 2021 16:30:16 +0000 (17:30 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Nov 2021 13:36:57 +0000 (14:36 +0100)
commitf057a1d4f0d2cf66f6a4b578c846bbb1d0eb0223
treeb552212221547e88966fdbf3790a6d3f1e7838b3
parentc76ef96fc00eb398c8fc836b0eb2f82bcc619dc7
usb: 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);

Acked-by: Shuah Khan <skhan@linuxfoundation.org>
Acked-by: Peter Chen <peter.chen@kernel.or> # for chipidea part
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/563123a8117d6cafae3f134e497587bd2b8bb7f4.1636734453.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/chipidea/otg.c
drivers/usb/gadget/udc/mv_udc_core.c
drivers/usb/host/u132-hcd.c
drivers/usb/phy/phy-mv-usb.c
drivers/usb/usbip/usbip_event.c