loader: simplify codeflow in drm_get_pci_id_for_fd
authorEmil Velikov <emil.velikov@collabora.com>
Thu, 5 Mar 2020 13:50:46 +0000 (13:50 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 1 Apr 2020 15:57:22 +0000 (16:57 +0100)
commite3572f977fc662bdecdac4f525f415bdc7e62147
treeca4773d5e283b8eda064793308e1585a817bc4e6
parent164f4a9a4a32b8e638ce3f3c684d147d70a3b1de
loader: simplify codeflow in drm_get_pci_id_for_fd

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