summaryrefslogtreecommitdiff
path: root/src/smilynx_hw.c
diff options
context:
space:
mode:
authorPaulo Cesar Pereira de Andrade <pcpa@mandriva.com.br>2008-11-24 15:15:43 -0200
committerPaulo Cesar Pereira de Andrade <pcpa@mandriva.com.br>2008-11-24 15:15:43 -0200
commit26ce0b163d9cf44ec1bc1d1bd460887aa5b405a7 (patch)
tree5063cb22f76ece5925f2bbfa6713f978715b770a /src/smilynx_hw.c
parent2057d7ae05ef269f75a4d53fe5c4914a10856cb1 (diff)
Use a single debug macro for leaving functions.
The LEAVE() macro, when debug is disabled, now is defined as: <hash>define LEAVE(...) return __VA_ARGS__ This avoids the requirement of a return statement after the LEAVE() macro call, what can be confusing.
Diffstat (limited to 'src/smilynx_hw.c')
-rw-r--r--src/smilynx_hw.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/smilynx_hw.c b/src/smilynx_hw.c
index d909531..4b6c121 100644
--- a/src/smilynx_hw.c
+++ b/src/smilynx_hw.c
@@ -151,7 +151,7 @@ SMILynx_HWInit(ScrnInfoPtr pScrn)
VGAOUT8_INDEX(pSmi, vgaCRIndex, vgaCRData, 0x33, 0x00);
VGAOUT8_INDEX(pSmi, vgaCRIndex, vgaCRData, 0x3A, 0x00);
- RETURN(TRUE);
+ LEAVE(TRUE);
}
/*
@@ -603,7 +603,7 @@ SMILynx_ddc1Read(ScrnInfoPtr pScrn)
ret = VGAIN8_INDEX(pSmi, VGA_SEQ_INDEX, VGA_SEQ_DATA, 0x72) & 0x08;
- RETURN(ret);
+ LEAVE(ret);
}
xf86MonPtr
@@ -623,7 +623,7 @@ SMILynx_ddc1(ScrnInfoPtr pScrn)
SMILynx_ddc1Read));
VGAOUT8_INDEX(pSmi, VGA_SEQ_INDEX, VGA_SEQ_DATA, 0x72, tmp);
- RETURN(pMon);
+ LEAVE(pMon);
}