mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] char:pcmcia:synclink_cs - Do not initialise statics to 0.
@ 2015-05-25 19:31 Shailendra Verma
  0 siblings, 0 replies; only message in thread
From: Shailendra Verma @ 2015-05-25 19:31 UTC (permalink / raw)
  To: Greg Kroah-Hartman, Peter Hurley, Jesper Nilsson
  Cc: linux-kernel, Shailendra Verma

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;

Signed-off-by: Shailendra Verma <shailendra.capricorn@gmail.com>
---
 drivers/char/pcmcia/synclink_cs.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/char/pcmcia/synclink_cs.c b/drivers/char/pcmcia/synclink_cs.c
index 0ea9986..7680d52 100644
--- a/drivers/char/pcmcia/synclink_cs.c
+++ b/drivers/char/pcmcia/synclink_cs.c
@@ -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
-- 
1.7.9.5


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-05-25 19:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-25 19:31 [PATCH] char:pcmcia:synclink_cs - Do not initialise statics to 0 Shailendra Verma

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®