megaraid_sas : Remove redundant code of memset load_balance_info to zero
Subsystems (2)
PATCH 7/8 megaraid_sas : Remove redundant code of memset load_balance_info to zero
struct fusion_context *fusion is already memset to '0', so remove redundant code of meset "fusion->load_balance_info" to '0'.
Signed-off-by Chaitra Basappa <[email protected]>
Signed-off-by Sumit Saxena <[email protected]>
--- drivers/scsi/megaraid/megaraid_sas_base.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-)
drivers/scsi/megaraid/megaraid_sas_base.c +0 -2
@@ -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 */
Signature · 1 line
1.7.3
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Sumit" == <[email protected]> writes:
Sumit> struct fusion_context *fusion is already memset to '0', so remove Sumit> redundant code of meset "fusion->load_balance_info" to '0'.
Reviewed-by Martin K. Petersen <[email protected]>
Signature · 1 line
Martin K. Petersen Oracle Linux Engineering