summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorSupriya Karanth <iskaranth@gmail.com>2015-03-12 13:26:21 +0900
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-03-15 18:41:15 +0100
commitb30edfcd04b5ffdb6b36a5b36a37d911222b9d37 (patch)
tree72e3680eb6d5d3b62c2f68536b4a2e88969b8a7f /drivers
parent6fa7db83e4f9ef5cd820b7c8aba06cd068035641 (diff)
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: Supriya Karanth <iskaranth@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/staging/sm750fb/sm750.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/staging/sm750fb/sm750.c b/drivers/staging/sm750fb/sm750.c
index 23d67b3e5e2f..a7b1b9c50239 100644
--- a/drivers/staging/sm750fb/sm750.c
+++ b/drivers/staging/sm750fb/sm750.c
@@ -46,14 +46,14 @@ typedef int (*PROC_SPEC_INITHW)(struct lynx_share*,struct pci_dev*);
/* common var for all device */
static int g_hwcursor = 1;
-static int g_noaccel = 0;
+static int g_noaccel;
#ifdef CONFIG_MTRR
-static int g_nomtrr = 0;
+static int g_nomtrr;
#endif
static const char * g_fbmode[] = {NULL,NULL};
static const char * g_def_fbmode = "800x600-16@60";
static char * g_settings = NULL;
-static int g_dualview = 0;
+static int g_dualview;
static char * g_option = NULL;
/* if not use spin_lock,system will die if user load driver