]> www.infradead.org Git - users/jedix/linux-maple.git/commit
wifi: rtw88: usb: Remove redundant 'flush_workqueue()' calls
authorChen Ni <nichen@iscas.ac.cn>
Mon, 24 Mar 2025 08:03:03 +0000 (16:03 +0800)
committerPing-Ke Shih <pkshih@realtek.com>
Mon, 31 Mar 2025 06:41:38 +0000 (14:41 +0800)
commit625fbc16524a45488f6eb8561d98b3328efe79cd
tree4d9a56a37c7a5a99cce83eb025cb2501efb2aa44
parent5c4cf36c538bb2714e43654e365cb77b19c4a93e
wifi: rtw88: 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);

Signed-off-by: Chen Ni <nichen@iscas.ac.cn>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://patch.msgid.link/20250324080303.408084-1-nichen@iscas.ac.cn
drivers/net/wireless/realtek/rtw88/usb.c