From 26ce0b163d9cf44ec1bc1d1bd460887aa5b405a7 Mon Sep 17 00:00:00 2001 From: Paulo Cesar Pereira de Andrade Date: Mon, 24 Nov 2008 15:15:43 -0200 Subject: Use a single debug macro for leaving functions. The LEAVE() macro, when debug is disabled, now is defined as: define LEAVE(...) return __VA_ARGS__ This avoids the requirement of a return statement after the LEAVE() macro call, what can be confusing. --- src/smilynx_hw.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/smilynx_hw.c') 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); } -- cgit v1.2.3