summaryrefslogtreecommitdiffstats
path: root/drivers/staging/xgifb
diff options
context:
space:
mode:
authorAaro Koskinen2012-11-04 20:14:45 +0100
committerGreg Kroah-Hartman2012-11-13 21:54:18 +0100
commit6c27b37091f655815d8cfee340f0f7c16b718400 (patch)
treea022f92e8b2df58821da10e73f810e15bbe36b36 /drivers/staging/xgifb
parentstaging: xgifb: XGI_GetLcdPtr: use real pointers for data tables (diff)
downloadkernel-qcow2-linux-6c27b37091f655815d8cfee340f0f7c16b718400.tar.gz
kernel-qcow2-linux-6c27b37091f655815d8cfee340f0f7c16b718400.tar.xz
kernel-qcow2-linux-6c27b37091f655815d8cfee340f0f7c16b718400.zip
staging: xgifb: XGI_GetLcdPtr: delete redundant code
tempal is a write-only stack variable, and code touching it can be deleted. Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/xgifb')
-rw-r--r--drivers/staging/xgifb/vb_setmode.c19
1 files changed, 1 insertions, 18 deletions
diff --git a/drivers/staging/xgifb/vb_setmode.c b/drivers/staging/xgifb/vb_setmode.c
index 276cd1537e07..9aa923cfdfdf 100644
--- a/drivers/staging/xgifb/vb_setmode.c
+++ b/drivers/staging/xgifb/vb_setmode.c
@@ -1310,30 +1310,13 @@ static void *XGI_GetLcdPtr(unsigned short BX, unsigned short ModeNo,
unsigned short RefreshRateTableIndex,
struct vb_device_info *pVBInfo)
{
- unsigned short i, tempdx, tempbx, tempal, modeflag;
+ unsigned short i, tempdx, tempbx, modeflag;
struct XGI330_LCDDataTablStruct *tempdi = NULL;
tempbx = BX;
modeflag = pVBInfo->EModeIDTable[ModeIdIndex].Ext_ModeFlag;
- tempal = pVBInfo->RefIndex[RefreshRateTableIndex].Ext_CRT2CRTC;
-
- tempal = tempal & 0x0f;
-
- if (tempbx <= 1) { /* ExpLink */
- tempal = pVBInfo->RefIndex[RefreshRateTableIndex].Ext_CRT2CRTC;
-
- if (pVBInfo->VBInfo & XGI_SetCRT2ToLCDA) {
- tempal = pVBInfo->RefIndex[RefreshRateTableIndex].
- Ext_CRT2CRTC2;
- }
-
- if (tempbx & 0x01)
- tempal = (tempal >> 4);
-
- tempal = (tempal & 0x0f);
- }
switch (tempbx) {
case 0: