egl: simplify refcounting after screen creation
authorEmil Velikov <emil.velikov@collabora.com>
Sun, 27 Aug 2017 10:20:26 +0000 (11:20 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Tue, 29 Aug 2017 12:40:46 +0000 (13:40 +0100)
commit2f76dff65f83a28b335497ab216a8bb71e6c97a2
treecc981aa978a1b2d4eea2c9ca4fb50b1674acb04c
parent0ac78dc92582a59d4319ebce019b4caa41fb432d
egl: simplify refcounting after screen creation

If the specific initialize was successfull, dri2_egl_display() will
return a non NULL pointer. Thus we can drop the check and flatten the
codeflow.

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Acked-by: Daniel Stone <daniels@collabora.com>
src/egl/drivers/dri2/egl_dri2.c