st/mesa: remove unneeded break from st_api_create_context()
authorEmil Velikov <emil.velikov@collabora.com>
Tue, 7 Jun 2016 16:33:47 +0000 (17:33 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Mon, 13 Jun 2016 14:31:28 +0000 (15:31 +0100)
We have return on the previous line, thus the break will never be
reached.

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/state_tracker/st_manager.c

index 7c8cb6356871d5b5bc51271a76ce3d6b65f90494..997d4284497f65fbf8294561e22077f731a6b478 100644 (file)
@@ -654,7 +654,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)