diff options
author | YueHaibing <yuehaibing@huawei.com> | 2019-03-23 21:27:53 +0800 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2019-04-03 23:46:00 -0400 |
commit | 25ea6b19db54a76879e388ff4dfd67be48890f0d (patch) | |
tree | 8ccf40463942ab6f4746512c41be6e0699537ced /drivers/scsi/qla2xxx/qla_init.c | |
parent | c2b997508078d907e431c77a72e03410c3002f68 (diff) | |
download | linux-25ea6b19db54a76879e388ff4dfd67be48890f0d.tar.bz2 |
scsi: qla2xxx: Remove useless set memory to zero use memset()
The memory return by kzalloc() has already be set to zero, so remove
useless memset(0).
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_init.c')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_init.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/scsi/qla2xxx/qla_init.c b/drivers/scsi/qla2xxx/qla_init.c index a16dbef7ecc9..0ab697dea906 100644 --- a/drivers/scsi/qla2xxx/qla_init.c +++ b/drivers/scsi/qla2xxx/qla_init.c @@ -8871,7 +8871,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; |