[Openchrome-devel] [PATCH 4/9] Fix unused-variable warnings in via_tmds.c.
Xavier Bachelot
xavier at bachelot.org
Fri Aug 5 23:14:38 UTC 2016
Signed-off-by: Xavier Bachelot <xavier at bachelot.org>
---
src/via_tmds.c | 11 -----------
1 file changed, 11 deletions(-)
diff --git a/src/via_tmds.c b/src/via_tmds.c
index a6b665e..55f43c5 100644
--- a/src/via_tmds.c
+++ b/src/via_tmds.c
@@ -246,8 +246,6 @@ via_dvi_get_property(xf86OutputPtr output, Atom
property)
static void
via_dvi_dpms(xf86OutputPtr output, int mode)
{
- ScrnInfoPtr pScrn = output->scrn;
-
switch (mode) {
case DPMSModeOn:
via_vt1632_power(output, TRUE);
@@ -302,7 +300,6 @@ via_dvi_mode_set(xf86OutputPtr output,
DisplayModePtr mode,
DisplayModePtr adjusted_mode)
{
ScrnInfoPtr pScrn = output->scrn;
- vgaHWPtr hwp = VGAHWPTR(pScrn);
via_vt1632_mode_set(output, mode, adjusted_mode);
}
@@ -312,7 +309,6 @@ via_dvi_detect(xf86OutputPtr output)
{
xf86OutputStatus status = XF86OutputStatusDisconnected;
ScrnInfoPtr pScrn = output->scrn;
- VIAPtr pVia = VIAPTR(pScrn);
ViaVT1632Ptr Private = output->driver_private;
xf86MonPtr mon;
@@ -518,7 +514,6 @@ via_tmds_detect(xf86OutputPtr output)
xf86OutputStatus status = XF86OutputStatusDisconnected;
ScrnInfoPtr pScrn = output->scrn;
VIAPtr pVia = VIAPTR(pScrn);
- VIATMDSRecPtr pVIATMDSRec = output->driver_private;
DEBUG(xf86DrvMsg(pScrn->scrnIndex, X_INFO,
"Entered via_tmds_detect.\n"));
@@ -644,7 +639,6 @@ viaTMDSInit(ScrnInfoPtr pScrn)
{
xf86OutputPtr output;
vgaHWPtr hwp = VGAHWPTR(pScrn);
- VIAPtr pVia = VIAPTR(pScrn);
VIATMDSRecPtr pVIATMDSRec = NULL;
CARD8 sr13, sr5a, cr3e;
Bool status = FALSE;
@@ -729,11 +723,6 @@ void
via_dvi_init(ScrnInfoPtr pScrn)
{
VIAPtr pVia = VIAPTR(pScrn);
- xf86OutputPtr output = NULL;
- ViaVT1632Ptr private_data = NULL;
- I2CBusPtr pBus = NULL;
- I2CDevPtr pDev = NULL;
- I2CSlaveAddr addr = 0x10;
DEBUG(xf86DrvMsg(pScrn->scrnIndex, X_INFO,
"Entered via_dvi_init.\n"));
--
2.7.4
More information about the Openchrome-devel
mailing list