diff options
| author | 2022-01-14 08:51:56 +0000 | |
|---|---|---|
| committer | 2022-01-26 14:53:49 +0100 | |
| commit | 021d517296f30f5ca077eef9b976dff04841bc9b (patch) | |
| tree | 7503df15bd40648d26a0dced612934d70569d2f2 | |
| parent | Linux 5.17-rc1 (diff) | |
| download | linux-dev-021d517296f30f5ca077eef9b976dff04841bc9b.tar.xz linux-dev-021d517296f30f5ca077eef9b976dff04841bc9b.zip | |
tty: serial: max3100: 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.
Signed-off-by: Xu Wang <vulab@iscas.ac.cn>
Link: https://lore.kernel.org/r/20220114085156.43041-1-vulab@iscas.ac.cn
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
| -rw-r--r-- | drivers/tty/serial/max3100.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/tty/serial/max3100.c b/drivers/tty/serial/max3100.c index 3c92d4e01488..9494690dcfe2 100644 --- a/drivers/tty/serial/max3100.c +++ b/drivers/tty/serial/max3100.c @@ -554,7 +554,6 @@ static void max3100_shutdown(struct uart_port *port) del_timer_sync(&s->timer); if (s->workqueue) { - flush_workqueue(s->workqueue); destroy_workqueue(s->workqueue); s->workqueue = NULL; } |
