aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/megaraid
diff options
context:
space:
mode:
authorSumit.Saxena@avagotech.com <Sumit.Saxena@avagotech.com>2015-01-05 09:36:28 -0500
committerChristoph Hellwig <hch@lst.de>2015-01-09 09:44:37 -0500
commit1aecbc8d679e7eb61fa955eb97874b090c08a89d (patch)
tree3ecfa3b4715c9cb1c0ec1252ae2d5d10d7d3e81d /drivers/scsi/megaraid
parentae09a6c1fd421887fa4885adb7c55ccc8074c441 (diff)
megaraid_sas: remove redundant memset call
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>
Diffstat (limited to 'drivers/scsi/megaraid')
-rw-r--r--drivers/scsi/megaraid/megaraid_sas_base.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/scsi/megaraid/megaraid_sas_base.c b/drivers/scsi/megaraid/megaraid_sas_base.c
index bf31dde554ce..890637fdd61e 100644
--- a/drivers/scsi/megaraid/megaraid_sas_base.c
+++ b/drivers/scsi/megaraid/megaraid_sas_base.c
@@ -5185,8 +5185,6 @@ static int megasas_probe_one(struct pci_dev *pdev,
5185 ((1 << PAGE_SHIFT) << instance->ctrl_context_pages)); 5185 ((1 << PAGE_SHIFT) << instance->ctrl_context_pages));
5186 INIT_LIST_HEAD(&fusion->cmd_pool); 5186 INIT_LIST_HEAD(&fusion->cmd_pool);
5187 spin_lock_init(&fusion->mpt_pool_lock); 5187 spin_lock_init(&fusion->mpt_pool_lock);
5188 memset(fusion->load_balance_info, 0,
5189 sizeof(struct LD_LOAD_BALANCE_INFO) * MAX_LOGICAL_DRIVES_EXT);
5190 } 5188 }
5191 break; 5189 break;
5192 default: /* For all other supported controllers */ 5190 default: /* For all other supported controllers */