|
|
3c6e85 |
From 0ed777da08d81dc1c246177a5295d96f63279b19 Mon Sep 17 00:00:00 2001
|
|
|
3c6e85 |
From: Himanshu Madhani <hmadhani@redhat.com>
|
|
|
3c6e85 |
Date: Thu, 1 Aug 2019 15:56:06 -0400
|
|
|
3c6e85 |
Subject: [PATCH 106/124] [scsi] scsi: qla2xxx: Remove unnecessary null check
|
|
|
3c6e85 |
|
|
|
3c6e85 |
Message-id: <20190801155618.12650-107-hmadhani@redhat.com>
|
|
|
3c6e85 |
Patchwork-id: 267875
|
|
|
3c6e85 |
O-Subject: [RHEL 7.8 e-stor PATCH 106/118] scsi: qla2xxx: Remove unnecessary null check
|
|
|
3c6e85 |
Bugzilla: 1729270
|
|
|
3c6e85 |
RH-Acked-by: Jarod Wilson <jarod@redhat.com>
|
|
|
3c6e85 |
RH-Acked-by: Tony Camuso <tcamuso@redhat.com>
|
|
|
3c6e85 |
|
|
|
3c6e85 |
From: YueHaibing <yuehaibing@huawei.com>
|
|
|
3c6e85 |
|
|
|
3c6e85 |
Bugzilla 1729270
|
|
|
3c6e85 |
|
|
|
3c6e85 |
A null check before dma_pool_destroy is redundant, so remove it. This is
|
|
|
3c6e85 |
detected by coccinelle.
|
|
|
3c6e85 |
|
|
|
3c6e85 |
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
|
|
|
3c6e85 |
Acked-by: Himanshu Madhani <hmadhani@marvell.com>
|
|
|
3c6e85 |
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
|
|
|
3c6e85 |
(cherry picked from commit 0b3b6fe299c471e44ed8713b7a602882626e693f)
|
|
|
3c6e85 |
Signed-off-by: Himanshu Madhani <hmadhani@redhat.com>
|
|
|
3c6e85 |
Signed-off-by: Jan Stancek <jstancek@redhat.com>
|
|
|
3c6e85 |
---
|
|
|
3c6e85 |
drivers/scsi/qla2xxx/qla_os.c | 3 +--
|
|
|
3c6e85 |
1 file changed, 1 insertion(+), 2 deletions(-)
|
|
|
3c6e85 |
|
|
|
3c6e85 |
diff --git a/drivers/scsi/qla2xxx/qla_os.c b/drivers/scsi/qla2xxx/qla_os.c
|
|
|
3c6e85 |
index 5009c5e4b276..c98ba0cd5183 100644
|
|
|
3c6e85 |
--- a/drivers/scsi/qla2xxx/qla_os.c
|
|
|
3c6e85 |
+++ b/drivers/scsi/qla2xxx/qla_os.c
|
|
|
3c6e85 |
@@ -4866,8 +4866,7 @@ qla2x00_mem_free(struct qla_hw_data *ha)
|
|
|
3c6e85 |
}
|
|
|
3c6e85 |
}
|
|
|
3c6e85 |
|
|
|
3c6e85 |
- if (ha->dif_bundl_pool)
|
|
|
3c6e85 |
- dma_pool_destroy(ha->dif_bundl_pool);
|
|
|
3c6e85 |
+ dma_pool_destroy(ha->dif_bundl_pool);
|
|
|
3c6e85 |
ha->dif_bundl_pool = NULL;
|
|
|
3c6e85 |
|
|
|
3c6e85 |
qlt_mem_free(ha);
|
|
|
3c6e85 |
--
|
|
|
3c6e85 |
2.13.6
|
|
|
3c6e85 |
|