egl/drm: remove temporary fd variable
authorEric Engestrom <eric.engestrom@imgtec.com>
Wed, 31 May 2017 15:57:42 +0000 (16:57 +0100)
committerEric Engestrom <eric.engestrom@imgtec.com>
Wed, 31 May 2017 17:09:27 +0000 (18:09 +0100)
commit11da77e5468efd9d02e27e056aeb6abdc56b88b0
tree535b622a037cf3064839284f22a189351043e519
parentc222fa9ada88980e5613dbca6217219cf0d62d4a
egl/drm: remove temporary fd variable

In all codepaths, this var ends up assigned to the struct, except one:
a cleanup codepath, where the `close()` was removed, leading to fd leaks.
Remove the temp fd and assign to the struct field directly instead.

CovID: 1213930
Fixes: 7ec07beedf486d8ab901 ("egl/drm: make use of the
                              dri2_display_destroy() helper")
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com>
src/egl/drivers/dri2/platform_drm.c