loader: simplify loader_get_user_preferred_fd()
authorEmil Velikov <emil.velikov@collabora.com>
Tue, 19 Feb 2019 15:30:40 +0000 (15:30 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 1 Apr 2020 15:57:22 +0000 (16:57 +0100)
commit164f4a9a4a32b8e638ce3f3c684d147d70a3b1de
tree6f5de6299f18ab53972b9e686bcd5f5411d8e46b
parent25b2b325885710dc7dc7539d6d37e77182767088
loader: simplify loader_get_user_preferred_fd()

Reoder the function a bit to make the code-flow more obvious and short.

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Eric Engestrom <eric@engestrom.ch>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4084>
src/loader/loader.c