From 2d1b95477fbf91d90c65f8907dce0556b06db6f0 Mon Sep 17 00:00:00 2001 From: Vinson Lee Date: Mon, 26 Apr 2010 00:19:14 -0700 Subject: 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 file changed, 3 deletions(-) (limited to 'src/gallium/state_trackers/egl') 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 47ecc503eb7..97445478684 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); -- cgit v1.2.3