Mesa (master): et/egl: Remove dead code.
Vinson Lee
vlee at kemper.freedesktop.org
Mon Apr 26 07:21:52 UTC 2010
Module: Mesa
Branch: master
Commit: 2d1b95477fbf91d90c65f8907dce0556b06db6f0
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=2d1b95477fbf91d90c65f8907dce0556b06db6f0
Author: Vinson Lee <vlee at vmware.com>
Date: Mon Apr 26 00:19:14 2010 -0700
et/egl: Remove dead code.
proc_name cannot be NULL after the switch statement. proc_name is
assigned a value or the function has already returned.
---
src/gallium/state_trackers/egl/common/egl_g3d_st.c | 3 ---
1 files changed, 0 insertions(+), 3 deletions(-)
diff --git a/src/gallium/state_trackers/egl/common/egl_g3d_st.c b/src/gallium/state_trackers/egl/common/egl_g3d_st.c
index 47ecc50..9744547 100644
--- a/src/gallium/state_trackers/egl/common/egl_g3d_st.c
+++ b/src/gallium/state_trackers/egl/common/egl_g3d_st.c
@@ -71,9 +71,6 @@ egl_g3d_create_st_api(enum st_api_type api)
return NULL;
}
- if (!proc_name)
- return NULL;
-
lib = util_dl_open(NULL);
if (lib) {
proc = util_dl_get_proc_address(lib, proc_name);
More information about the mesa-commit
mailing list