Commit e684f468 authored by Ruslan Pisarev's avatar Ruslan Pisarev Committed by Greg Kroah-Hartman

Staging: xgifb: Fixed up a errors "do not initialise statics to 0 or NULL" in XGI_main_26.c

This is a patch to the XGI_main_26.c file that fixed up a errors "do not initialise statics to 0 or NULL" found by the checkpatch.pl tools.
Signed-off-by: default avatarRuslan Pisarev <ruslan@rpisarev.org.ua>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 44c4ec78
......@@ -396,8 +396,8 @@ static unsigned char XGIfb_query_VGA_config_space(
struct xgi_hw_device_info *pXGIhw_ext, unsigned long offset,
unsigned long set, unsigned long *value)
{
static struct pci_dev *pdev = NULL;
static unsigned char init = 0, valid_pdev = 0;
static struct pci_dev *pdev;
static unsigned char init, valid_pdev;
if (!set)
DPRINTK("XGIfb: Get VGA offset 0x%lx\n", offset);
......@@ -2564,26 +2564,26 @@ module_init(xgifb_init);
#ifdef MODULE
static char *mode = NULL;
static int vesa = 0;
static unsigned int rate = 0;
static unsigned int mem = 0;
static char *forcecrt2type = NULL;
static char *mode;
static int vesa;
static unsigned int rate;
static unsigned int mem;
static char *forcecrt2type;
static int forcecrt1 = -1;
static int pdc = -1;
static int pdc1 = -1;
static int noypan = -1;
static int userom = -1;
static int useoem = -1;
static char *tvstandard = NULL;
static int nocrt2rate = 0;
static char *tvstandard;
static int nocrt2rate;
static int scalelcd = -1;
static char *specialtiming = NULL;
static char *specialtiming;
static int lvdshl = -1;
static int tvxposoffset = 0, tvyposoffset = 0;
static int tvxposoffset, tvyposoffset;
#if !defined(__i386__) && !defined(__x86_64__)
static int resetcard = 0;
static int videoram = 0;
static int resetcard;
static int videoram;
#endif
MODULE_DESCRIPTION("Z7 Z9 Z9S Z11 framebuffer device 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