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>
This commit is contained in:
parent
c2b9975080
commit
25ea6b19db
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue