projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7c04b96
)
radv: remove dead code for master_fd close
author
Dave Airlie
<airlied@redhat.com>
Thu, 4 Oct 2018 23:24:31 +0000
(09:24 +1000)
committer
Dave Airlie
<airlied@redhat.com>
Thu, 11 Oct 2018 00:19:16 +0000
(10:19 +1000)
We have never opened master_Fd at this point, so remove code to
close it.
Found by coverity.
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/amd/vulkan/radv_device.c
patch
|
blob
|
history
diff --git
a/src/amd/vulkan/radv_device.c
b/src/amd/vulkan/radv_device.c
index 429d47325a3d12883b86188c74233ebe032b57b4..88786c999de2b7466d39e9ceeb172d145c8623b6 100644
(file)
--- 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)