summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillem Jover <guillem@hadrons.org>2013-09-18 19:22:48 +0200
committerGuillem Jover <guillem@hadrons.org>2013-09-19 03:11:22 +0200
commit601d6af9fcefa69d7a76c6f968a153bac6f33c61 (patch)
treeb065795ac69bf9b60f0e357cc2573b8ce3e439e2
parentda1797b6cc582f1fe31697aa744731f0f9fb6f74 (diff)
Remove unreachable error check code branch
There's no framebuffer locking funcion being called, and the last value assigned to r is from grSstWinOpen(), so there has already been an error check, and doing it later on will never trigger again. Just remove the error check and error call. Signed-off-by: Guillem Jover <guillem@hadrons.org>
-rw-r--r--src/glide_driver.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/glide_driver.c b/src/glide_driver.c
index 909f91e..faba80c 100644
--- a/src/glide_driver.c
+++ b/src/glide_driver.c
@@ -873,12 +873,6 @@ GLIDEModeInit(ScrnInfoPtr pScrn, DisplayModePtr mode)
grClipWindow(0, 0, 1024, 768);
grBufferClear(0, 0, GR_ZDEPTHVALUE_FARTHEST);
- if (!r) {
- xf86DrvMsg(pScrn->scrnIndex, X_ERROR,
- "Could not lock glide frame buffer\n");
- return FALSE;
- }
-
pGlide->Blanked = FALSE;
pGlide->GlideInitiated = TRUE;