From: Dave Airlie <airl...@redhat.com>

We have never opened master_Fd at this point, so remove code to
close it.

Found by coverity.
---
 src/amd/vulkan/radv_device.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c
index 429d47325a3..88786c999de 100644
--- a/src/amd/vulkan/radv_device.c
+++ b/src/amd/vulkan/radv_device.c
@@ -273,8 +273,6 @@ radv_physical_device_init(struct radv_physical_device 
*device,
 
        if (strcmp(version->name, "amdgpu")) {
                drmFreeVersion(version);
-               if (master_fd != -1)
-                       close(master_fd);
                close(fd);
 
                if (instance->debug_flags & RADV_DEBUG_STARTUP)
-- 
2.17.1

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to