diff options
author | Dave Airlie <[email protected]> | 2018-10-05 09:24:31 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2018-10-11 10:19:16 +1000 |
commit | 6e1d2948044ff4eff25e0a04d2078230ae31d78a (patch) | |
tree | eccb41a4ad577aa603884385754698bfc292a72b /src | |
parent | 7c04b96f03d6c66173742bd683f29b9f39b6536a (diff) |
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 <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/amd/vulkan/radv_device.c | 2 |
1 files changed, 0 insertions, 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) |