Skip to contentSkip to conversation

tty: serial: max3100: Remove redundant 'flush_workqueue()' calls

PATCH New Xu Wang 1 participant 1 message Jan 14, 2022 TTY layer and serial drivers

lore
Share & tools
lore

Xu Wang

author
#0 lore raw

PATCH 1/1 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.

---
 drivers/tty/serial/max3100.c | 1 -
 1 file changed, 1 deletion(-)
drivers/tty/serial/max3100.c +0 -1
index 3c92d4e01488..9494690dcfe2 100644
@@ -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;
 	}
Signature · 1 line
2.25.1