[Openchrome-devel] [PATCH 2/9] Fix unused-variable and unused-but-set-variable warnings in via_display.c
Xavier Bachelot
xavier at bachelot.org
Fri Aug 5 23:14:24 UTC 2016
Signed-off-by: Xavier Bachelot <xavier at bachelot.org>
---
src/via_display.c | 20 --------------------
1 file changed, 20 deletions(-)
diff --git a/src/via_display.c b/src/via_display.c
index 779028f..e772c7c 100644
--- a/src/via_display.c
+++ b/src/via_display.c
@@ -2782,8 +2782,6 @@ static void
iga1_crtc_dpms(xf86CrtcPtr crtc, int mode)
{
ScrnInfoPtr pScrn = crtc->scrn;
- VIAPtr pVia = VIAPTR(pScrn);
- VIABIOSInfoPtr pBIOSInfo = pVia->pBIOSInfo;
DEBUG(xf86DrvMsg(pScrn->scrnIndex, X_INFO,
"Entered iga1_crtc_dpms.\n"));
@@ -2821,7 +2819,6 @@ iga1_crtc_save(xf86CrtcPtr crtc)
{
ScrnInfoPtr pScrn = crtc->scrn;
vgaHWPtr hwp = VGAHWPTR(pScrn);
- VIAPtr pVia = VIAPTR(pScrn);
DEBUG(xf86DrvMsg(pScrn->scrnIndex, X_INFO,
"Entered iga1_crtc_save.\n"));
@@ -2841,8 +2838,6 @@ iga1_crtc_restore(xf86CrtcPtr crtc)
{
ScrnInfoPtr pScrn = crtc->scrn;
vgaHWPtr hwp = VGAHWPTR(pScrn);
- VIAPtr pVia = VIAPTR(pScrn);
- CARD8 tmp;
DEBUG(xf86DrvMsg(pScrn->scrnIndex, X_INFO,
"Entered iga1_crtc_restore.\n"));
@@ -2922,7 +2917,6 @@ static void
iga1_crtc_set_origin(xf86CrtcPtr crtc, int x, int y)
{
ScrnInfoPtr pScrn = crtc->scrn;
- VIAPtr pVia = VIAPTR(pScrn);
DEBUG(xf86DrvMsg(pScrn->scrnIndex, X_INFO,
"Entered iga1_crtc_set_origin.\n"));
@@ -3002,7 +2996,6 @@ iga1_crtc_gamma_set(xf86CrtcPtr crtc, CARD16 *red,
CARD16 *green, CARD16 *blue,
ScrnInfoPtr pScrn = crtc->scrn;
vgaHWPtr hwp = VGAHWPTR(pScrn);
VIAPtr pVia = VIAPTR(pScrn);
- int SR1A, SR1B, CR67, CR6A;
LOCO colors[size];
int i;
@@ -3028,11 +3021,6 @@ iga1_crtc_gamma_set(xf86CrtcPtr crtc, CARD16
*red, CARD16 *green, CARD16 *blue,
} else {
- SR1A = hwp->readSeq(hwp, 0x1A);
- SR1B = hwp->readSeq(hwp, 0x1B);
- CR67 = hwp->readCrtc(hwp, 0x67);
- CR6A = hwp->readCrtc(hwp, 0x6A);
-
for (i = 0; i < size; i++) {
hwp->writeDacWriteAddr(hwp, i);
hwp->writeDacData(hwp, colors[i].red);
@@ -3255,8 +3243,6 @@ static void
iga2_crtc_dpms(xf86CrtcPtr crtc, int mode)
{
ScrnInfoPtr pScrn = crtc->scrn;
- VIAPtr pVia = VIAPTR(pScrn);
- VIABIOSInfoPtr pBIOSInfo = pVia->pBIOSInfo;
DEBUG(xf86DrvMsg(pScrn->scrnIndex, X_INFO,
"Entered iga2_crtc_dpms.\n"));
@@ -3287,8 +3273,6 @@ static void
iga2_crtc_save(xf86CrtcPtr crtc)
{
ScrnInfoPtr pScrn = crtc->scrn;
- vgaHWPtr hwp = VGAHWPTR(pScrn);
- VIAPtr pVia = VIAPTR(pScrn);
DEBUG(xf86DrvMsg(pScrn->scrnIndex, X_INFO,
"Entered iga2_crtc_save.\n"));
@@ -3303,9 +3287,6 @@ static void
iga2_crtc_restore(xf86CrtcPtr crtc)
{
ScrnInfoPtr pScrn = crtc->scrn;
- vgaHWPtr hwp = VGAHWPTR(pScrn);
- VIAPtr pVia = VIAPTR(pScrn);
- CARD8 tmp;
DEBUG(xf86DrvMsg(pScrn->scrnIndex, X_INFO,
"Entered iga2_crtc_restore.\n"));
@@ -3372,7 +3353,6 @@ static void
iga2_crtc_set_origin(xf86CrtcPtr crtc, int x, int y)
{
ScrnInfoPtr pScrn = crtc->scrn;
- VIAPtr pVia = VIAPTR(pScrn);
DEBUG(xf86DrvMsg(pScrn->scrnIndex, X_INFO,
"Entered iga2_crtc_set_origin.\n"));
--
2.7.4
More information about the Openchrome-devel
mailing list