[PATCH xf86-video-mga 4/9] remove unused variables in MGAG200EHPIXPLLSET

Nicolas Kaiser nikai at nikai.net
Wed Jun 8 02:02:04 PDT 2011


Silence compile warnings
src/mga_dacG.c: In function 'MGAG200EHPIXPLLSET':
src/mga_dacG.c:545: warning: unused variable 'ucS'
src/mga_dacG.c:544: warning: unused variable 'ucP'
src/mga_dacG.c:543: warning: unused variable 'ucN'
src/mga_dacG.c:542: warning: unused variable 'ucM'
src/mga_dacG.c:540: warning: unused variable 'ulFallBackCounter'

Signed-off-by: Nicolas Kaiser <nikai at nikai.net>
---
 src/mga_dacG.c |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)

diff --git a/src/mga_dacG.c b/src/mga_dacG.c
index fca1031..ac62ddb 100644
--- a/src/mga_dacG.c
+++ b/src/mga_dacG.c
@@ -647,12 +647,8 @@ MGAG200EHPIXPLLSET(ScrnInfoPtr pScrn, MGARegPtr mgaReg)
 {
     MGAPtr pMga = MGAPTR(pScrn);
 
-    unsigned long ulFallBackCounter, ulLoopCount, ulLockCheckIterations = 0, ulTempCount, ulVCount;
+    unsigned long ulLoopCount, ulLockCheckIterations = 0, ulTempCount, ulVCount;
     unsigned char ucTempByte, ucPixCtrl, ucPLLLocked = FALSE;
-    unsigned char ucM;
-    unsigned char ucN;
-    unsigned char ucP;
-    unsigned char ucS;
 
     while(ulLockCheckIterations <= 32 && ucPLLLocked == FALSE)
     {
-- 
1.7.5.3


More information about the xorg-devel mailing list