Skip to contentSkip to conversation

: Remove needless memset in megasas_init

PATCH New Arnaldo Carvalho de Melo 1 participant 1 message Aug 8, 2007

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

PATCH 1/1 : Remove needless memset in megasas_init

megasas_mgmt_info is a static variable, so goes to .bss thus zeroed at boot.

---
 drivers/scsi/megaraid/megaraid_sas.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
drivers/scsi/megaraid/megaraid_sas.c +0 -2
index ebb948c..59099da 100644
@@ -3033,8 +3033,6 @@ static int __init megasas_init(void)
 	printk(KERN_INFO "megasas: %s %s\n", MEGASAS_VERSION,
 	       MEGASAS_EXT_VERSION);
 
-	memset(&megasas_mgmt_info, 0, sizeof(megasas_mgmt_info));
-
 	/*
 	 * Register character device node
 	 */
Signature · 1 line
1.5.2.2