[Mesa-dev] [PATCH 2/5] radv: remove dead code for master_fd close

Dave Airlie airlied at gmail.com
Fri Oct 5 00:00:34 UTC 2018


From: Dave Airlie <airlied at 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



More information about the mesa-dev mailing list