Skip to content

Commit b30edfc

Browse files
iskaranthgregkh
authored andcommitted
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 <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 6fa7db8 commit b30edfc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/staging/sm750fb/sm750.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,14 @@ typedef int (*PROC_SPEC_INITHW)(struct lynx_share*,struct pci_dev*);
4646

4747
/* common var for all device */
4848
static int g_hwcursor = 1;
49-
static int g_noaccel = 0;
49+
static int g_noaccel;
5050
#ifdef CONFIG_MTRR
51-
static int g_nomtrr = 0;
51+
static int g_nomtrr;
5252
#endif
5353
static const char * g_fbmode[] = {NULL,NULL};
5454
static const char * g_def_fbmode = "800x600-16@60";
5555
static char * g_settings = NULL;
56-
static int g_dualview = 0;
56+
static int g_dualview;
5757
static char * g_option = NULL;
5858

5959
/* if not use spin_lock,system will die if user load driver

0 commit comments

Comments
 (0)