[Mesa-dev] [PATCH 14/15] st/mesa: remove unneeded break from st_api_create_context()

Emil Velikov emil.l.velikov at gmail.com
Tue Jun 7 16:33:47 UTC 2016


From: Emil Velikov <emil.velikov at collabora.com>

We have return on the previous line, thus the break will never be
reached.

Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
---
 src/mesa/state_tracker/st_manager.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/mesa/state_tracker/st_manager.c b/src/mesa/state_tracker/st_manager.c
index b204658..a199f85 100644
--- a/src/mesa/state_tracker/st_manager.c
+++ b/src/mesa/state_tracker/st_manager.c
@@ -657,7 +657,6 @@ st_api_create_context(struct st_api *stapi, struct st_manager *smapi,
    default:
       *error = ST_CONTEXT_ERROR_BAD_API;
       return NULL;
-      break;
    }
 
    if (attribs->flags & ST_CONTEXT_FLAG_ROBUST_ACCESS)
-- 
2.8.2



More information about the mesa-dev mailing list