summaryrefslogtreecommitdiffstats
path: root/drivers/scsi
diff options
context:
space:
mode:
authorran jianping <ran.jianping@zte.com.cn>2022-04-24 08:18:45 +0200
committerMartin K. Petersen <martin.petersen@oracle.com>2022-04-26 05:38:38 +0200
commit4c0df601e150c1e48566e7e4e183ba40c9f81157 (patch)
tree953225382f0841d9031cdda0bc26b879aa3450f5 /drivers/scsi
parentscsi: qedf: Remove unnecessary code (diff)
downloadlinux-4c0df601e150c1e48566e7e4e183ba40c9f81157.tar.xz
linux-4c0df601e150c1e48566e7e4e183ba40c9f81157.zip
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.cn Reported-by: Zeal Robot <zealci@zte.com.cn> Signed-off-by: ran jianping <ran.jianping@zte.com.cn> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi')
-rw-r--r--drivers/scsi/bfa/bfad_im.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/scsi/bfa/bfad_im.c b/drivers/scsi/bfa/bfad_im.c
index 8419a1a89485..c335f7a188d2 100644
--- a/drivers/scsi/bfa/bfad_im.c
+++ b/drivers/scsi/bfa/bfad_im.c
@@ -755,7 +755,6 @@ void
bfad_destroy_workq(struct bfad_im_s *im)
{
if (im && im->drv_workq) {
- flush_workqueue(im->drv_workq);
destroy_workqueue(im->drv_workq);
im->drv_workq = NULL;
}