]> git.karo-electronics.de Git - linux-beck.git/commitdiff
megaraid_sas: remove redundant memset call
authorSumit.Saxena@avagotech.com <Sumit.Saxena@avagotech.com>
Mon, 5 Jan 2015 14:36:28 +0000 (20:06 +0530)
committerChristoph Hellwig <hch@lst.de>
Fri, 9 Jan 2015 14:44:37 +0000 (15:44 +0100)
struct fusion_context *fusion is already memset to '0', so remove a
redundant call to memmset "fusion->load_balance_info" to '0'.

Signed-off-by: Chaitra Basappa <chaitra.basappa@avagotech.com>
Signed-off-by: Sumit Saxena <sumit.saxena@avagotech.com>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/scsi/megaraid/megaraid_sas_base.c

index bf31dde554cecd63deaec2215cdcb941d73b6eac..890637fdd61e3535da093d0f9b41e4efc95eca13 100644 (file)
@@ -5185,8 +5185,6 @@ static int megasas_probe_one(struct pci_dev *pdev,
                        ((1 << PAGE_SHIFT) << instance->ctrl_context_pages));
                INIT_LIST_HEAD(&fusion->cmd_pool);
                spin_lock_init(&fusion->mpt_pool_lock);
-               memset(fusion->load_balance_info, 0,
-                       sizeof(struct LD_LOAD_BALANCE_INFO) * MAX_LOGICAL_DRIVES_EXT);
        }
        break;
        default: /* For all other supported controllers */