egl/dri2/drm: compact existing device mgmt
authorEmil Velikov <emil.l.velikov@gmail.com>
Mon, 7 Sep 2015 08:53:53 +0000 (09:53 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Tue, 15 Sep 2015 11:37:27 +0000 (12:37 +0100)
commitbd5bcb5b8ca043a3908d7a70ab1193efc1db278d
treeed2c0abc8bfb4379ed59c0c32e8ba736a73fd8df
parente4f0d26c8c3c092a09fb65184ab080de4e38373e
egl/dri2/drm: compact existing device mgmt

Move the fcntl(dupfd_cloexec) to the else branch where it belongs.
Otherwise it's not immediately obvious that the code is hit, only when
an existing device is used.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Boyan Ding <boyan.j.ding@gmail.com>
src/egl/drivers/dri2/platform_drm.c