summaryrefslogtreecommitdiff
path: root/drivers/scsi/bfa/bfad_im.c
diff options
context:
space:
mode:
authorran jianping <ran.jianping@zte.com.cn>2022-04-24 09:18:45 +0300
committerMartin K. Petersen <martin.petersen@oracle.com>2022-04-26 06:38:38 +0300
commit4c0df601e150c1e48566e7e4e183ba40c9f81157 (patch)
tree953225382f0841d9031cdda0bc26b879aa3450f5 /drivers/scsi/bfa/bfad_im.c
parent21faafff6abbbe79fe56e3c7049514df08a9e66e (diff)
downloadlinux-4c0df601e150c1e48566e7e4e183ba40c9f81157.tar.xz
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/bfa/bfad_im.c')
-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;
}