projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
00d4e78
)
turnip: drop dead close(master_fd)
author
Emil Velikov
<emil.velikov@collabora.com>
Fri, 19 Apr 2019 10:47:34 +0000
(11:47 +0100)
committer
Emil Velikov
<emil.l.velikov@gmail.com>
Fri, 26 Apr 2019 10:26:33 +0000
(11:26 +0100)
The fd is -1, thus the block of if (fd != -1) close(fd) is dead code.
Cc: Chad Versace <chadversary@chromium.org>
Reviewed-by: Chia-I Wu <olvaffe@gmail.com>
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
src/freedreno/vulkan/tu_device.c
patch
|
blob
|
history
diff --git
a/src/freedreno/vulkan/tu_device.c
b/src/freedreno/vulkan/tu_device.c
index c7f4d0b26eb9e884f70db1007c66eb7e450117bb..1268624bd8d3f348620137cf7788c7742c7d61a2 100644
(file)
--- a/
src/freedreno/vulkan/tu_device.c
+++ b/
src/freedreno/vulkan/tu_device.c
@@
-198,8
+198,6
@@
tu_physical_device_init(struct tu_physical_device *device,
if (strcmp(version->name, "msm")) {
drmFreeVersion(version);
- if (master_fd != -1)
- close(master_fd);
close(fd);
return vk_errorf(instance, VK_ERROR_INCOMPATIBLE_DRIVER,
"device %s does not use the msm kernel driver", path);