提交 108c8670 编写于 作者: S Shawn Lin 提交者: Martin K. Petersen

scsi: esas2r: don't reinitialize adapter's req_table

req_table is allocate by kzalloc, so we don't need to zero it again.
Signed-off-by: NShawn Lin <shawn.lin@rock-chips.com>
Acked-by: NBradley Grove <bgrove@attotech.com>
Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
上级 67f25175
...@@ -963,10 +963,6 @@ bool esas2r_init_adapter_struct(struct esas2r_adapter *a, ...@@ -963,10 +963,6 @@ bool esas2r_init_adapter_struct(struct esas2r_adapter *a,
/* initialize the allocated memory */ /* initialize the allocated memory */
if (test_bit(AF_FIRST_INIT, &a->flags)) { if (test_bit(AF_FIRST_INIT, &a->flags)) {
memset(a->req_table, 0,
(num_requests + num_ae_requests +
1) * sizeof(struct esas2r_request *));
esas2r_targ_db_initialize(a); esas2r_targ_db_initialize(a);
/* prime parts of the inbound list */ /* prime parts of the inbound list */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册