Skip to content

Commit

Permalink
Staging: xgifb: Fixed up a errors "do not initialise statics to 0 or …
Browse files Browse the repository at this point in the history
…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: Ruslan Pisarev <ruslan@rpisarev.org.ua>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Ruslan Pisarev authored and Greg Kroah-Hartman committed Aug 23, 2011
1 parent 44c4ec7 commit e684f46
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions drivers/staging/xgifb/XGI_main_26.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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");
Expand Down

0 comments on commit e684f46

Please sign in to comment.