projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c2b9975
)
scsi: qla2xxx: Remove useless set memory to zero use memset()
author
YueHaibing
<yuehaibing@huawei.com>
Sat, 23 Mar 2019 13:27:53 +0000
(21:27 +0800)
committer
Martin K. Petersen
<martin.petersen@oracle.com>
Thu, 4 Apr 2019 03:46:00 +0000
(23:46 -0400)
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>
drivers/scsi/qla2xxx/qla_init.c
patch
|
blob
|
history
diff --git
a/drivers/scsi/qla2xxx/qla_init.c
b/drivers/scsi/qla2xxx/qla_init.c
index a16dbef7ecc97e4a26340b7d8e092e37431642fa..0ab697dea9061779c1483853bb45144fd233ad56 100644
(file)
--- 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;