Fixup of variable declaration

The content of the variable `res` will be returned but it was never
declared (goto case).
Removed unnecessary returns in compositor/wayland/xdg_surface.c
Merge pull request #575 from manuelmessner/fixup-context_c

Fixup of variable declaration