Skip to contentSkip to conversation

megaraid_sas : Remove redundant code of memset load_balance_info to zero

PATCH In review [email protected] 2 participants 2 messages Jan 5, 2015 – Jan 7, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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'.

---
 drivers/scsi/megaraid/megaraid_sas_base.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
drivers/scsi/megaraid/megaraid_sas_base.c +0 -2
index ac3c04a..d9215d7 100644
@@ -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
Reviewed-by on v1 7/8
#1 lore raw
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'.

Signature · 1 line
Martin K. Petersen	Oracle Linux Engineering