|
|
3d7c23 |
From 0928805059bbbc09195920cd22bfa58ec797096c Mon Sep 17 00:00:00 2001
|
|
|
3d7c23 |
From: Himanshu Madhani <hmadhani@redhat.com>
|
|
|
3d7c23 |
Date: Thu, 1 Aug 2019 15:55:17 -0400
|
|
|
3d7c23 |
Subject: [PATCH 057/124] [scsi] scsi: qla2xxx: Remove useless set memory to
|
|
|
3d7c23 |
zero use memset()
|
|
|
3d7c23 |
|
|
|
3d7c23 |
Message-id: <20190801155618.12650-58-hmadhani@redhat.com>
|
|
|
3d7c23 |
Patchwork-id: 267833
|
|
|
3d7c23 |
O-Subject: [RHEL 7.8 e-stor PATCH 057/118] scsi: qla2xxx: Remove useless set memory to zero use memset()
|
|
|
3d7c23 |
Bugzilla: 1729270
|
|
|
3d7c23 |
RH-Acked-by: Jarod Wilson <jarod@redhat.com>
|
|
|
3d7c23 |
RH-Acked-by: Tony Camuso <tcamuso@redhat.com>
|
|
|
3d7c23 |
|
|
|
3d7c23 |
From: YueHaibing <yuehaibing@huawei.com>
|
|
|
3d7c23 |
|
|
|
3d7c23 |
Bugzilla 1729270
|
|
|
3d7c23 |
|
|
|
3d7c23 |
The memory return by kzalloc() has already be set to zero, so remove
|
|
|
3d7c23 |
useless memset(0).
|
|
|
3d7c23 |
|
|
|
3d7c23 |
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
|
|
|
3d7c23 |
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
|
|
|
3d7c23 |
(cherry picked from commit 25ea6b19db54a76879e388ff4dfd67be48890f0d)
|
|
|
3d7c23 |
Signed-off-by: Himanshu Madhani <hmadhani@redhat.com>
|
|
|
3d7c23 |
Signed-off-by: Jan Stancek <jstancek@redhat.com>
|
|
|
3d7c23 |
---
|
|
|
3d7c23 |
drivers/scsi/qla2xxx/qla_init.c | 1 -
|
|
|
3d7c23 |
1 file changed, 1 deletion(-)
|
|
|
3d7c23 |
|
|
|
3d7c23 |
diff --git a/drivers/scsi/qla2xxx/qla_init.c b/drivers/scsi/qla2xxx/qla_init.c
|
|
|
3d7c23 |
index eb9c4f8ee10f..69313bc7609a 100644
|
|
|
3d7c23 |
--- a/drivers/scsi/qla2xxx/qla_init.c
|
|
|
3d7c23 |
+++ b/drivers/scsi/qla2xxx/qla_init.c
|
|
|
3d7c23 |
@@ -8893,7 +8893,6 @@ struct qla_qpair *qla2xxx_create_qpair(struct scsi_qla_host *vha,
|
|
|
3d7c23 |
"Failed to allocate memory for queue pair.\n");
|
|
|
3d7c23 |
return NULL;
|
|
|
3d7c23 |
}
|
|
|
3d7c23 |
- memset(qpair, 0, sizeof(struct qla_qpair));
|
|
|
3d7c23 |
|
|
|
3d7c23 |
qpair->hw = vha->hw;
|
|
|
3d7c23 |
qpair->vha = vha;
|
|
|
3d7c23 |
--
|
|
|
3d7c23 |
2.13.6
|
|
|
3d7c23 |
|