From 0928805059bbbc09195920cd22bfa58ec797096c Mon Sep 17 00:00:00 2001 From: Himanshu Madhani Date: Thu, 1 Aug 2019 15:55:17 -0400 Subject: [PATCH 057/124] [scsi] scsi: qla2xxx: Remove useless set memory to zero use memset() Message-id: <20190801155618.12650-58-hmadhani@redhat.com> Patchwork-id: 267833 O-Subject: [RHEL 7.8 e-stor PATCH 057/118] scsi: qla2xxx: Remove useless set memory to zero use memset() Bugzilla: 1729270 RH-Acked-by: Jarod Wilson RH-Acked-by: Tony Camuso From: YueHaibing Bugzilla 1729270 The memory return by kzalloc() has already be set to zero, so remove useless memset(0). Signed-off-by: YueHaibing Signed-off-by: Martin K. Petersen (cherry picked from commit 25ea6b19db54a76879e388ff4dfd67be48890f0d) Signed-off-by: Himanshu Madhani Signed-off-by: Jan Stancek --- 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 eb9c4f8ee10f..69313bc7609a 100644 --- a/drivers/scsi/qla2xxx/qla_init.c +++ b/drivers/scsi/qla2xxx/qla_init.c @@ -8893,7 +8893,6 @@ struct qla_qpair *qla2xxx_create_qpair(struct scsi_qla_host *vha, "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.13.6