OSDN Git Service

scsi: megaraid: Remove the static variable initialisation
authorJason Wang <wangborong@cdjrlc.com>
Sat, 23 Jul 2022 09:16:20 +0000 (17:16 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 27 Jul 2022 02:15:47 +0000 (22:15 -0400)
Initialising global and static variables to 0 is unnecessary.  Remove the
initialisation.

Link: https://lore.kernel.org/r/20220723091620.5463-1-wangborong@cdjrlc.com
Signed-off-by: Jason Wang <wangborong@cdjrlc.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/megaraid/megaraid_mbox.c

index 2a339d4..157c3bd 100644 (file)
@@ -181,7 +181,7 @@ MODULE_PARM_DESC(cmd_per_lun,
  * This would result in non-disk devices being skipped during driver load
  * time. These can be later added though, using /proc/scsi/scsi
  */
-static unsigned int megaraid_fast_load = 0;
+static unsigned int megaraid_fast_load;
 module_param_named(fast_load, megaraid_fast_load, int, 0);
 MODULE_PARM_DESC(fast_load,
        "Faster loading of the driver, skips physical devices! (default=0)");