From 6e1d2948044ff4eff25e0a04d2078230ae31d78a Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Fri, 5 Oct 2018 09:24:31 +1000 Subject: radv: remove dead code for master_fd close We have never opened master_Fd at this point, so remove code to close it. Found by coverity. Reviewed-by: Samuel Pitoiset --- 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) -- cgit v1.2.3