Skip to content

Commit

Permalink
staging: xgifb: delete pVBInfo->BaseAddr
Browse files Browse the repository at this point in the history
Delete redundant field.

Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Aaro Koskinen authored and Greg Kroah-Hartman committed Jan 21, 2013
1 parent b8e1cc5 commit cdbbc61
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 8 deletions.
6 changes: 0 additions & 6 deletions drivers/staging/xgifb/vb_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -1286,16 +1286,10 @@ unsigned char XGIInitNew(struct pci_dev *pdev)

pVBInfo->FBAddr = HwDeviceExtension->pjVideoMemoryAddress;

pVBInfo->BaseAddr = xgifb_info->vga_base;

if (pVBInfo->FBAddr == NULL) {
dev_dbg(&pdev->dev, "pVBInfo->FBAddr == 0\n");
return 0;
}
if (pVBInfo->BaseAddr == 0) {
dev_dbg(&pdev->dev, "pVBInfo->BaseAddr == 0\n");
return 0;
}

XGIRegInit(pVBInfo, xgifb_info->vga_base);

Expand Down
1 change: 0 additions & 1 deletion drivers/staging/xgifb/vb_setmode.c
Original file line number Diff line number Diff line change
Expand Up @@ -5948,7 +5948,6 @@ unsigned char XGISetModeNew(struct xgifb_video_info *xgifb_info,
unsigned short ModeIdIndex;
struct vb_device_info VBINF;
struct vb_device_info *pVBInfo = &VBINF;
pVBInfo->BaseAddr = xgifb_info->vga_base;
pVBInfo->IF_DEF_LVDS = 0;

if (HwDeviceExtension->jChipType >= XG20) {
Expand Down
1 change: 0 additions & 1 deletion drivers/staging/xgifb/vb_struct.h
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,6 @@ struct vb_device_info {
unsigned short SelectCRT2Rate;

void __iomem *FBAddr;
unsigned long BaseAddr;

unsigned char const (*SR15)[8];
unsigned char const (*CR40)[8];
Expand Down

0 comments on commit cdbbc61

Please sign in to comment.