summaryrefslogtreecommitdiff
path: root/src/smi_xaa.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/smi_xaa.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/smi_xaa.c')
-rw-r--r--src/smi_xaa.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/smi_xaa.c b/src/smi_xaa.c
index 31790bf..5b9e32d 100644
--- a/src/smi_xaa.c
+++ b/src/smi_xaa.c
@@ -80,7 +80,7 @@ SMI_XAAInit(ScreenPtr pScreen)
pSmi->XAAInfoRec = infoPtr = XAACreateInfoRec();
if (infoPtr == NULL)
- RETURN(FALSE);
+ LEAVE(FALSE);
infoPtr->Flags = PIXMAP_CACHE
| LINEAR_FRAMEBUFFER
@@ -190,7 +190,7 @@ SMI_XAAInit(ScreenPtr pScreen)
ret = XAAInit(pScreen, infoPtr);
- RETURN(ret);
+ LEAVE(ret);
}
/******************************************************************************/