wl-desktop-shell: Remove useless return at end of function

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2015-06-25 09:45:28 -04:00
parent 609fa7100d
commit 475a246ea9
1 changed files with 2 additions and 3 deletions

View File

@ -589,13 +589,12 @@ static void
_e_xdg_surface_state_add(struct wl_resource *resource, struct wl_array *states, uint32_t state) _e_xdg_surface_state_add(struct wl_resource *resource, struct wl_array *states, uint32_t state)
{ {
uint32_t *s; uint32_t *s;
s = wl_array_add(states, sizeof(*s));
s = wl_array_add(states, sizeof(*s));
if (s) if (s)
*s = state; *s = state;
else else
wl_resource_post_no_memory(resource); wl_resource_post_no_memory(resource);
return;
} }
static void static void