Commit 4c0df601 authored by ran jianping's avatar ran jianping Committed by Martin K. Petersen

scsi: bfa: Remove unneeded flush_workqueue()

All work currently pending will be done first by calling
destroy_workqueue(). There is no need to flush it explicitly.

Link: https://lore.kernel.org/r/20220424061845.3218774-1-ran.jianping@zte.com.cnReported-by: default avatarZeal Robot <zealci@zte.com.cn>
Signed-off-by: default avatarran jianping <ran.jianping@zte.com.cn>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 21faafff
...@@ -755,7 +755,6 @@ void ...@@ -755,7 +755,6 @@ void
bfad_destroy_workq(struct bfad_im_s *im) bfad_destroy_workq(struct bfad_im_s *im)
{ {
if (im && im->drv_workq) { if (im && im->drv_workq) {
flush_workqueue(im->drv_workq);
destroy_workqueue(im->drv_workq); destroy_workqueue(im->drv_workq);
im->drv_workq = NULL; im->drv_workq = NULL;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment