backlight: lm3630a_bl: Remove redundant 'flush_workqueue()' calls
Subsystems (2)
PATCH 1/1 backlight: lm3630a_bl: 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 <[email protected]>
--- drivers/video/backlight/lm3630a_bl.c | 1 - 1 file changed, 1 deletion(-)
drivers/video/backlight/lm3630a_bl.c +0 -1
@@ -594,7 +594,6 @@ static int lm3630a_remove(struct i2c_client *client)if (pchip->irq) {free_irq (pchip->irq, pchip); -flush_workqueue (pchip->irqthread);destroy_workqueue (pchip->irqthread); }return 0 ;
Signature · 1 line
2.25.1
Quoted 6 lines · Xu Wang
'
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 <[email protected]>
Reviewed-by Daniel Thompson <[email protected]>
Daniel.