summaryrefslogtreecommitdiff
path: root/src/smi501_output.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/smi501_output.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/smi501_output.c')
-rw-r--r--src/smi501_output.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/smi501_output.c b/src/smi501_output.c
index 475c2d2..ee310d8 100644
--- a/src/smi501_output.c
+++ b/src/smi501_output.c
@@ -124,7 +124,7 @@ SMI501_OutputDetect_crt(xf86OutputPtr output)
WRITE_SCR(pSmi, CRT_DETECT, mode->crt_detect.value);
SMI501_WaitVSync(pSmi, 1);
- RETURN(status);
+ LEAVE(status);
}
#endif
@@ -147,7 +147,7 @@ SMI501_OutputPreInit(ScrnInfoPtr pScrn)
output0 = xf86OutputCreate(pScrn, &SMI501_Output0Funcs, "LVDS");
if (!output0)
- RETURN(FALSE);
+ LEAVE(FALSE);
output0->possible_crtcs = 1 << 0;
output0->possible_clones = 0;
@@ -165,7 +165,7 @@ SMI501_OutputPreInit(ScrnInfoPtr pScrn)
output1 = xf86OutputCreate(pScrn, &SMI501_Output1Funcs, "VGA");
if (!output1)
- RETURN(FALSE);
+ LEAVE(FALSE);
output1->possible_crtcs = 1 << 1;
output1->possible_clones = 0;
@@ -173,5 +173,5 @@ SMI501_OutputPreInit(ScrnInfoPtr pScrn)
output1->doubleScanAllowed = FALSE;
}
- RETURN(TRUE);
+ LEAVE(TRUE);
}