Skip to contentSkip to conversation

staging:xgifb:remove unused code

PATCH RESEND Superseded Ding Xiang 3 participants 3 messages Aug 23, 2016 Staging

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Ding Xiang

author
#0 lore raw

PATCH RESEND 1/1 staging:xgifb:remove unused code

The variable data is assigned but never used in rest code.

---
 drivers/staging/xgifb/vb_setmode.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
drivers/staging/xgifb/vb_setmode.c +0 -1
index 50c8ea4..71bb9ca 100644
@@ -727,7 +727,6 @@ static void XGI_SetCRT1DE(unsigned short ModeIdIndex,
 		tempax |= 0x40;
 
 	xgifb_reg_and_or(pVBInfo->P3d4, 0x07, ~0x42, tempax);
-	data = xgifb_reg_get(pVBInfo->P3d4, 0x07);
 	tempax = 0;
 
 	if (tempbx & 0x04)
Signature · 1 line
1.7.1
maintainer
#2 lore raw
In reply to Ding Xiang
Quoted 12 lines · Ding Xiang

The variable data is assigned but never used in rest code.

---
 drivers/staging/xgifb/vb_setmode.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
drivers/staging/xgifb/vb_setmode.c +0 -0
index 50c8ea4..71bb9ca 100644

drivers/staging/xgifb/vb_setmode.c static void XGI_SetCRT1DE(unsigned short ModeIdIndex, · line 730

Quoted 4 lines
drivers/staging/xgifb/vb_setmode.c +0 -1
@@ -727,7 +727,6 @@ static void XGI_SetCRT1DE(unsigned short ModeIdIndex,
 		tempax |= 0x40;
 
 	xgifb_reg_and_or(pVBInfo->P3d4, 0x07, ~0x42, tempax);
-	data = xgifb_reg_get(pVBInfo->P3d4, 0x07);

But this did something with the hardware, are you sure this doesn't break anything? Lots of hardware works with the sequence of:
write something
read something to make sure the write worked.

Did you test this?

thanks,

greg k-h