public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [ patch -mm1 06/11 ] gpio-patchset-fixups:  no static init
@ 2006-06-22 18:52 Jim Cromie
  0 siblings, 0 replies; only message in thread
From: Jim Cromie @ 2006-06-22 18:52 UTC (permalink / raw)
  To: Andrew Morton; +Cc: Linux kernel

diff.13-fix-static-no-init

static vars don't need to be initialized.

Signed-off-by:   Jim Cromie <jim.cromie@gmail.com>

---

diff -ruNp -X dontdiff -X exclude-diffs 17-mm-pre0/drivers/char/pc8736x_gpio.c 13/drivers/char/pc8736x_gpio.c
--- 17-mm-pre0/drivers/char/pc8736x_gpio.c	2006-06-20 20:42:39.000000000 -0600
+++ 13/drivers/char/pc8736x_gpio.c	2006-06-21 10:31:31.000000000 -0600
@@ -28,7 +28,7 @@ MODULE_AUTHOR("Jim Cromie <jim.cromie@gm
 MODULE_DESCRIPTION("NatSemi PC-8736x GPIO Pin Driver");
 MODULE_LICENSE("GPL");
 
-static int major = 0;		/* default to dynamic major */
+static int major;		/* default to dynamic major */
 module_param(major, int, 0);
 MODULE_PARM_DESC(major, "Major device number");
 



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

only message in thread, other threads:[~2006-06-22 18:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-22 18:52 [ patch -mm1 06/11 ] gpio-patchset-fixups: no static init Jim Cromie

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