egl: Cleanup control flow in _eglParseSyncAttribList
authorChad Versace <chadversary@chromium.org>
Tue, 27 Sep 2016 20:27:18 +0000 (13:27 -0700)
committerChad Versace <chadversary@chromium.org>
Tue, 4 Oct 2016 21:11:29 +0000 (14:11 -0700)
commit02e4f1cb43c548a4ff27fb8d7bc9255bb4488c1e
treebd6ddbfb499149762d1c7518b82f09fc458f3304
parent3e0d575a6d727c4334b783c443a5e1980dca43b4
egl: Cleanup control flow in _eglParseSyncAttribList

When the function encountered an error, it effectively returned
immediately. However, it did so indirectly by breaking out of a loop.
Replace the loop breakout with a explicit 'return'.

Do the same for _eglParseSyncAttribList64 too.

Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
src/egl/main/eglsync.c