[Openchrome-devel] [PATCH 3/9] Fix 3 unused-variable warnings in via_lvds.c.

Xavier Bachelot xavier at bachelot.org
Fri Aug 5 23:14:31 UTC 2016


Signed-off-by: Xavier Bachelot <xavier at bachelot.org>
---
 src/via_lvds.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/src/via_lvds.c b/src/via_lvds.c
index 954837a..c78390c 100644
--- a/src/via_lvds.c
+++ b/src/via_lvds.c
@@ -632,8 +632,6 @@ static int
 via_lvds_mode_valid(xf86OutputPtr output, DisplayModePtr pMode)
 {
     ScrnInfoPtr pScrn = output->scrn;
-    VIAPtr pVia = VIAPTR(pScrn);
-
     ViaPanelInfoPtr Panel = output->driver_private;
      if (Panel->NativeWidth < pMode->HDisplay ||
@@ -1101,7 +1099,6 @@ via_lvds_init(ScrnInfoPtr pScrn)
     ViaPanelInfoPtr Panel = (ViaPanelInfoPtr)
xnfcalloc(sizeof(ViaPanelInfoRec), 1);
     OptionInfoPtr  Options = xnfalloc(sizeof(ViaPanelOptions));
     MessageType from = X_DEFAULT;
-    const char *s = NULL;
     VIAPtr pVia = VIAPTR(pScrn);
     xf86OutputPtr output = NULL;
     vgaHWPtr hwp = VGAHWPTR(pScrn);
-- 
2.7.4




More information about the Openchrome-devel mailing list