Skip to content

Commit

Permalink
staging: xgifb: delete write-only variables
Browse files Browse the repository at this point in the history
Delete couple write-only variables.

Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Reviewed-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Aaro Koskinen authored and Greg Kroah-Hartman committed Aug 24, 2011
1 parent f686e9a commit 883dac4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 18 deletions.
8 changes: 0 additions & 8 deletions drivers/staging/xgifb/XGI_main.h
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,6 @@ static int XGIfb_userom ;
/*static int XGIfb_useoem = -1; */

/* global flags */
static int XGIfb_registered;
static int XGIfb_tvmode;
static int XGIfb_pdc;
static int enable_dstn;
Expand All @@ -193,13 +192,6 @@ static int XGIfb_crt2type = -1;
/* PR: Tv plug type (for overriding autodetection) */
static int XGIfb_tvplug = -1;

static unsigned char XGIfb_detectedpdc;

static unsigned char XGIfb_detectedlcda = 0xff;




/* TW: For ioctl XGIFB_GET_INFO */
/* XGIfb_info XGIfbinfo; */

Expand Down
10 changes: 0 additions & 10 deletions drivers/staging/xgifb/XGI_main_26.c
Original file line number Diff line number Diff line change
Expand Up @@ -2046,8 +2046,6 @@ static int __devinit xgifb_probe(struct pci_dev *pdev,
if (XGIfb_off)
return -ENXIO;

XGIfb_registered = 0;

memset(&XGIhw_ext, 0, sizeof(struct xgi_hw_device_info));
fb_info = framebuffer_alloc(sizeof(struct fb_info), &pdev->dev);
if (!fb_info)
Expand Down Expand Up @@ -2307,12 +2305,6 @@ static int __devinit xgifb_probe(struct pci_dev *pdev,
}
}

XGIfb_detectedpdc = 0;

XGIfb_detectedlcda = 0xff;

/* TW: Try to find about LCDA */

if ((XGIhw_ext.ujVBChipID == VB_CHIP_302B) ||
(XGIhw_ext.ujVBChipID == VB_CHIP_301LV) ||
(XGIhw_ext.ujVBChipID == VB_CHIP_302LV)) {
Expand Down Expand Up @@ -2476,8 +2468,6 @@ static int __devinit xgifb_probe(struct pci_dev *pdev,
goto error_1;
}

XGIfb_registered = 1;

printk(KERN_INFO "fb%d: %s frame buffer device, Version %d.%d.%02d\n",
fb_info->node, myid, VER_MAJOR, VER_MINOR, VER_LEVEL);

Expand Down

0 comments on commit 883dac4

Please sign in to comment.