[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190323132753.22508-1-yuehaibing@huawei.com>
Date: Sat, 23 Mar 2019 21:27:53 +0800
From: Yue Haibing <yuehaibing@...wei.com>
To: <qla2xxx-upstream@...gic.com>, <jejb@...ux.ibm.com>,
<martin.petersen@...cle.com>
CC: <linux-kernel@...r.kernel.org>, <linux-scsi@...r.kernel.org>,
YueHaibing <yuehaibing@...wei.com>
Subject: [PATCH -next] scsi: qla2xxx: Remove useless set memory to zero use memset()
From: YueHaibing <yuehaibing@...wei.com>
The memory return by kzalloc() has already be set to zero, so
remove useless memset(0).
Signed-off-by: YueHaibing <yuehaibing@...wei.com>
---
drivers/scsi/qla2xxx/qla_init.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/scsi/qla2xxx/qla_init.c b/drivers/scsi/qla2xxx/qla_init.c
index 3b81a2a..90da4b9 100644
--- a/drivers/scsi/qla2xxx/qla_init.c
+++ b/drivers/scsi/qla2xxx/qla_init.c
@@ -8852,7 +8852,6 @@ struct qla_qpair *qla2xxx_create_qpair(struct scsi_qla_host *vha, int qos,
"Failed to allocate memory for queue pair.\n");
return NULL;
}
- memset(qpair, 0, sizeof(struct qla_qpair));
qpair->hw = vha->hw;
qpair->vha = vha;
--
2.7.0
Powered by blists - more mailing lists