Commit e2e544c9 authored by Peter Huewe's avatar Peter Huewe Committed by Greg Kroah-Hartman

staging/xgifb: remove unused variables

XGI_P3cc is unused and the assignment without side effects -> remove;
Data can be simply replaced by the Temp variable, which was changed to
temp in order to make checkpatch happy.
Signed-off-by: default avatarPeter Huewe <peterhuewe@gmx.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 5fc699f6
...@@ -638,10 +638,7 @@ static void xgifb_set_lcd(int chip_id, ...@@ -638,10 +638,7 @@ static void xgifb_set_lcd(int chip_id,
unsigned short RefreshRateTableIndex, unsigned short RefreshRateTableIndex,
unsigned short ModeNo) unsigned short ModeNo)
{ {
unsigned short Data, Temp; unsigned short temp;
unsigned short XGI_P3cc;
XGI_P3cc = pVBInfo->P3cc;
xgifb_reg_set(pVBInfo->P3d4, 0x2E, 0x00); xgifb_reg_set(pVBInfo->P3d4, 0x2E, 0x00);
xgifb_reg_set(pVBInfo->P3d4, 0x2F, 0x00); xgifb_reg_set(pVBInfo->P3d4, 0x2F, 0x00);
...@@ -649,8 +646,8 @@ static void xgifb_set_lcd(int chip_id, ...@@ -649,8 +646,8 @@ static void xgifb_set_lcd(int chip_id,
xgifb_reg_set(pVBInfo->P3d4, 0x47, 0x00); xgifb_reg_set(pVBInfo->P3d4, 0x47, 0x00);
if (chip_id == XG27) { if (chip_id == XG27) {
Temp = xgifb_reg_get(pVBInfo->P3d4, 0x37); temp = xgifb_reg_get(pVBInfo->P3d4, 0x37);
if ((Temp & 0x03) == 0) { /* dual 12 */ if ((temp & 0x03) == 0) { /* dual 12 */
xgifb_reg_set(pVBInfo->P3d4, 0x46, 0x13); xgifb_reg_set(pVBInfo->P3d4, 0x46, 0x13);
xgifb_reg_set(pVBInfo->P3d4, 0x47, 0x13); xgifb_reg_set(pVBInfo->P3d4, 0x47, 0x13);
} }
...@@ -659,8 +656,8 @@ static void xgifb_set_lcd(int chip_id, ...@@ -659,8 +656,8 @@ static void xgifb_set_lcd(int chip_id,
if (chip_id == XG27) { if (chip_id == XG27) {
XGI_SetXG27FPBits(pVBInfo); XGI_SetXG27FPBits(pVBInfo);
} else { } else {
Temp = xgifb_reg_get(pVBInfo->P3d4, 0x37); temp = xgifb_reg_get(pVBInfo->P3d4, 0x37);
if (Temp & 0x01) { if (temp & 0x01) {
/* 18 bits FP */ /* 18 bits FP */
xgifb_reg_or(pVBInfo->P3c4, 0x06, 0x40); xgifb_reg_or(pVBInfo->P3c4, 0x06, 0x40);
xgifb_reg_or(pVBInfo->P3c4, 0x09, 0x40); xgifb_reg_or(pVBInfo->P3c4, 0x09, 0x40);
...@@ -672,11 +669,11 @@ static void xgifb_set_lcd(int chip_id, ...@@ -672,11 +669,11 @@ static void xgifb_set_lcd(int chip_id,
xgifb_reg_and(pVBInfo->P3c4, 0x30, ~0x20); /* Hsync polarity */ xgifb_reg_and(pVBInfo->P3c4, 0x30, ~0x20); /* Hsync polarity */
xgifb_reg_and(pVBInfo->P3c4, 0x35, ~0x80); /* Vsync polarity */ xgifb_reg_and(pVBInfo->P3c4, 0x35, ~0x80); /* Vsync polarity */
Data = XGI330_RefIndex[RefreshRateTableIndex].Ext_InfoFlag; temp = XGI330_RefIndex[RefreshRateTableIndex].Ext_InfoFlag;
if (Data & 0x4000) if (temp & 0x4000)
/* Hsync polarity */ /* Hsync polarity */
xgifb_reg_or(pVBInfo->P3c4, 0x30, 0x20); xgifb_reg_or(pVBInfo->P3c4, 0x30, 0x20);
if (Data & 0x8000) if (temp & 0x8000)
/* Vsync polarity */ /* Vsync polarity */
xgifb_reg_or(pVBInfo->P3c4, 0x35, 0x80); xgifb_reg_or(pVBInfo->P3c4, 0x35, 0x80);
} }
......
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