summaryrefslogtreecommitdiff
path: root/src/smi_dga.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_dga.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_dga.c')
-rw-r--r--src/smi_dga.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/smi_dga.c b/src/smi_dga.c
index 32e6824..e0758ca 100644
--- a/src/smi_dga.c
+++ b/src/smi_dga.c
@@ -84,7 +84,7 @@ SMI_DGAInit(ScreenPtr pScreen)
newmodes = xrealloc(modes, (num + 1) * sizeof(DGAModeRec));
if (newmodes == NULL) {
xfree(modes);
- RETURN(FALSE);
+ LEAVE(FALSE);
}
modes = newmodes;
@@ -144,7 +144,7 @@ SMI_DGAInit(ScreenPtr pScreen)
ret = DGAInit(pScreen, &SMI_DGAFuncs, modes, num);
- RETURN(ret);
+ LEAVE(ret);
}
static Bool
@@ -177,7 +177,7 @@ SMI_SetMode(ScrnInfoPtr pScrn, DGAModePtr pMode)
SMI_SwitchMode(index, pMode->mode, 0);
}
- RETURN(TRUE);
+ LEAVE(TRUE);
}
@@ -188,7 +188,7 @@ SMI_GetViewport(ScrnInfoPtr pScrn)
ENTER();
- RETURN(pSmi->DGAViewportStatus);
+ LEAVE(pSmi->DGAViewportStatus);
}
static void
@@ -274,6 +274,6 @@ SMI_OpenFramebuffer(ScrnInfoPtr pScrn, char **name, unsigned char **mem,
*offset = 0;
*flags = DGA_NEED_ROOT;
- RETURN(TRUE);
+ LEAVE(TRUE);
}