Skip to contentSkip to conversation

char:pcmcia:synclink_cs - Do not initialise statics to 0.

PATCH New Shailendra Verma 1 participant 1 message May 25, 2015 Char and misc drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 char:pcmcia:synclink_cs - Do not initialise statics to 0.

Static variables are initialised to 0 by GCC.
Fixes the following checkpatch error:
ERROR: do not initialise statics to 0 or NULL
FILE: drivers/char/pcmcia/synclink_cs.c:440:
static bool break_on_load = 0;

---
 drivers/char/pcmcia/synclink_cs.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/char/pcmcia/synclink_cs.c +1 -1
index 0ea9986..7680d52 100644
@@ -437,7 +437,7 @@ static int mgslpc_device_count = 0;
  * .text section address and breakpoint on module load.
  * This is useful for use with gdb and add-symbol-file command.
  */
-static bool break_on_load=0;
+static bool break_on_load;
 
 /*
  * Driver major number, defaults to zero to get auto
Signature · 1 line
1.7.9.5