summaryrefslogtreecommitdiff
path: root/net/tls
diff options
context:
space:
mode:
authorTariq Toukan <tariqt@nvidia.com>2022-08-01 14:24:44 +0300
committerJakub Kicinski <kuba@kernel.org>2022-08-01 12:44:38 -0700
commitd81c7cdd7a6ddffcc8c00c991e3d6e24db84bd9e (patch)
tree425aee7b1d7728405ab4c4b4fd1d0d28555a42b3 /net/tls
parent2e8f205d910eb1fc59faf24582f3faf774000360 (diff)
net/tls: Remove redundant workqueue flush before destroy
destroy_workqueue() safely destroys the workqueue after draining it. No need for the explicit call to flush_workqueue(). Remove it. Signed-off-by: Tariq Toukan <tariqt@nvidia.com> Link: https://lore.kernel.org/r/20220801112444.26175-1-tariqt@nvidia.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/tls')
-rw-r--r--net/tls/tls_device.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/net/tls/tls_device.c b/net/tls/tls_device.c
index 18c7e5c6d228..e3e6cf75aa03 100644
--- a/net/tls/tls_device.c
+++ b/net/tls/tls_device.c
@@ -1449,7 +1449,6 @@ int __init tls_device_init(void)
void __exit tls_device_cleanup(void)
{
unregister_netdevice_notifier(&tls_dev_notifier);
- flush_workqueue(destruct_wq);
destroy_workqueue(destruct_wq);
clean_acked_data_flush();
}