Commit b30edfcd authored by Supriya Karanth's avatar Supriya Karanth Committed by Greg Kroah-Hartman

staging: sm750fb: remove intialization of static ints

static ints are initialized to 0 by the compiler.
Explicit initialization is not necessary.

Found by checkpatch.pl - ERROR: do not initialise statics to 0 or NULL

changes made using coccinelle script:
@@
type T;
identifier var;
@@
static T var
- =0
;
Signed-off-by: default avatarSupriya Karanth <iskaranth@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 6fa7db83
...@@ -46,14 +46,14 @@ typedef int (*PROC_SPEC_INITHW)(struct lynx_share*,struct pci_dev*); ...@@ -46,14 +46,14 @@ typedef int (*PROC_SPEC_INITHW)(struct lynx_share*,struct pci_dev*);
/* common var for all device */ /* common var for all device */
static int g_hwcursor = 1; static int g_hwcursor = 1;
static int g_noaccel = 0; static int g_noaccel;
#ifdef CONFIG_MTRR #ifdef CONFIG_MTRR
static int g_nomtrr = 0; static int g_nomtrr;
#endif #endif
static const char * g_fbmode[] = {NULL,NULL}; static const char * g_fbmode[] = {NULL,NULL};
static const char * g_def_fbmode = "800x600-16@60"; static const char * g_def_fbmode = "800x600-16@60";
static char * g_settings = NULL; static char * g_settings = NULL;
static int g_dualview = 0; static int g_dualview;
static char * g_option = NULL; static char * g_option = NULL;
/* if not use spin_lock,system will die if user load driver /* if not use spin_lock,system will die if user load driver
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment