egl/drm: flatten codeflow
authorEmil Velikov <emil.velikov@collabora.com>
Mon, 22 May 2017 16:28:12 +0000 (17:28 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Mon, 29 May 2017 15:59:19 +0000 (16:59 +0100)
commit1398ece02c9a3bf93ad5a52987fca3a30a22fdf8
treee43be237d146a7991191f67894e64da43c7303fb
parent4db5e8322796b2f566a4d16a5c4aaede2c8265f9
egl/drm: flatten codeflow

Rework the code to return early and drop an indentation level.
It should be easier to read.

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
src/egl/drivers/dri2/platform_drm.c