Skip to contentSkip to conversation

Staging: i4l: Do not initialise statics to 0.

PATCH New Sandhya Bankar 1 participant 1 message Sep 18, 2016 Staging

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 Staging: i4l: Do not initialise statics to 0.

Do not initialise statics to 0. Static variable by default initialise to 0, so no need to explicit initialisation. This issue was found by checkpatch.

---
Changes in v3:
* Correcting the file permission issue.

 drivers/staging/i4l/act2000/module.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/staging/i4l/act2000/module.c +1 -1
index 68073d0..39a8940 100644
@@ -28,7 +28,7 @@ static unsigned short act2000_isa_ports[] =
 static act2000_card *cards = (act2000_card *) NULL;
 
 /* Parameters to be set by insmod */
-static int   act_bus  =  0;
+static int   act_bus;
 static int   act_port = -1;  /* -1 = Autoprobe  */
 static int   act_irq  = -1;
 static char *act_id   = "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0";
Signature · 1 line
1.7.1