Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: sm750fb: coding style global ERROR fixes

kernel coding style fixes for below messages from
scripts/checkpatch.pl

ERROR: do not initialise globals to 0 or NULL

Signed-off-by: Vinay Simha BN <simhavcs@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Vinay Simha BN and committed by
Greg Kroah-Hartman
df525686 d5fca403

+6 -6
+3 -3
drivers/staging/sm750fb/ddk750_help.c
··· 1 1 #include "ddk750_help.h" 2 2 3 - void __iomem *mmio750 = NULL; 4 - char revId750 = 0; 5 - unsigned short devId750 = 0; 3 + void __iomem *mmio750; 4 + char revId750; 5 + unsigned short devId750; 6 6 7 7 /* after driver mapped io registers, use this function first */ 8 8 void ddk750_set_mmio(void __iomem *addr, unsigned short devId, char revId)
+3 -3
drivers/staging/sm750fb/sm750.c
··· 24 24 25 25 #include "modedb.h" 26 26 27 - int smi_indent = 0; 27 + int smi_indent; 28 28 29 29 30 30 /* ··· 47 47 static int g_nomtrr; 48 48 static const char *g_fbmode[] = {NULL, NULL}; 49 49 static const char *g_def_fbmode = "800x600-16@60"; 50 - static char *g_settings = NULL; 50 + static char *g_settings; 51 51 static int g_dualview; 52 - static char *g_option = NULL; 52 + static char *g_option; 53 53 54 54 55 55 static const struct fb_videomode lynx750_ext[] = {