diff options
author | Paulo Cesar Pereira de Andrade <pcpa@mandriva.com.br> | 2008-11-24 15:15:43 -0200 |
---|---|---|
committer | Paulo Cesar Pereira de Andrade <pcpa@mandriva.com.br> | 2008-11-24 15:15:43 -0200 |
commit | 26ce0b163d9cf44ec1bc1d1bd460887aa5b405a7 (patch) | |
tree | 5063cb22f76ece5925f2bbfa6713f978715b770a /src/smi501_crtc.c | |
parent | 2057d7ae05ef269f75a4d53fe5c4914a10856cb1 (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/smi501_crtc.c')
-rw-r--r-- | src/smi501_crtc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/smi501_crtc.c b/src/smi501_crtc.c index 70f3b12..6175f62 100644 --- a/src/smi501_crtc.c +++ b/src/smi501_crtc.c @@ -653,7 +653,7 @@ SMI501_CrtcPreInit(ScrnInfoPtr pScrn) crtc0 = xf86CrtcCreate(pScrn, &SMI501_Crtc0Funcs); if (!crtc0) - RETURN(FALSE); + LEAVE(FALSE); crtc0->driver_private = &SMI501_Crtc0Priv; /* CRTC1 is CRT */ @@ -674,10 +674,10 @@ SMI501_CrtcPreInit(ScrnInfoPtr pScrn) crtc1 = xf86CrtcCreate(pScrn, &SMI501_Crtc1Funcs); if (!crtc1) - RETURN(FALSE); + LEAVE(FALSE); crtc1->driver_private = &SMI501_Crtc1Priv; } - RETURN(TRUE); + LEAVE(TRUE); } |