scsi: esas2r: don't reinitialize adapter's req_table
authorShawn Lin <shawn.lin@rock-chips.com>
Sun, 21 Aug 2016 02:39:24 +0000 (10:39 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 26 Aug 2016 02:28:17 +0000 (22:28 -0400)
req_table is allocate by kzalloc, so we don't need to zero it again.

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Acked-by: Bradley Grove <bgrove@attotech.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/esas2r/esas2r_init.c

index 78ce4d61a69bbab88e1f90d52ea8c3084c12f0fe..d6e53aee22952190af34ce0f99fd1984a4d6a9c1 100644 (file)
@@ -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 */