Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1466897 > unrolled thread

[PATCH] scsi: don't reinitialize adapter's req_table

Started byShawn Lin <shawn.lin@rock-chips.com>
First post2016-08-21 04:50 +0200
Last post2016-08-21 04:50 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH] scsi: don't reinitialize adapter's req_table Shawn Lin <shawn.lin@rock-chips.com> - 2016-08-21 04:50 +0200

#1466897 — [PATCH] scsi: don't reinitialize adapter's req_table

FromShawn Lin <shawn.lin@rock-chips.com>
Date2016-08-21 04:50 +0200
Subject[PATCH] scsi: don't reinitialize adapter's req_table
Message-ID<s8qZH-2Xg-3@gated-at.bofh.it>
req_table is allocate by kzalloc, so we don't need to
zero it again anyway.

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
---

 drivers/scsi/esas2r/esas2r_init.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/drivers/scsi/esas2r/esas2r_init.c b/drivers/scsi/esas2r/esas2r_init.c
index 78ce4d61..d6e53ae 100644
--- a/drivers/scsi/esas2r/esas2r_init.c
+++ b/drivers/scsi/esas2r/esas2r_init.c
@@ -963,10 +963,6 @@ bool esas2r_init_adapter_struct(struct esas2r_adapter *a,
 
 	/* initialize the allocated memory */
 	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);
 
 		/* prime parts of the inbound list */
-- 
2.3.7

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web