Skip to contentSkip to conversation

fbdev: omap2: omapfb: Remove redundant 'flush_workqueue()' calls

PATCH New Xu Wang 1 participant 1 message Jan 13, 2022

Subsystems (2)
lore
Share & tools
lore

Xu Wang

author
#0 lore raw

PATCH 1/1 fbdev: omap2: omapfb: 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/video/fbdev/omap2/omapfb/omapfb-main.c | 1 -
 1 file changed, 1 deletion(-)
drivers/video/fbdev/omap2/omapfb/omapfb-main.c +0 -1
index a3decc7fadde..afa688e754b9 100644
@@ -1854,7 +1854,6 @@ static void omapfb_free_resources(struct omapfb2_device *fbdev)
 	}
 
 	if (fbdev->auto_update_wq != NULL) {
-		flush_workqueue(fbdev->auto_update_wq);
 		destroy_workqueue(fbdev->auto_update_wq);
 		fbdev->auto_update_wq = NULL;
 	}
Signature · 1 line
2.25.1