diff options
author | Emil Velikov <[email protected]> | 2019-04-19 11:47:34 +0100 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2019-04-26 11:26:33 +0100 |
commit | 1a9367c13455e6ecff39ec04351d557cf5cf59e4 (patch) | |
tree | 959f2ec521884643bd552ee8395e6dc7f84c1091 /src/freedreno | |
parent | 00d4e78ea938e770ed48882a00d15a7500a281b4 (diff) |
turnip: drop dead close(master_fd)
The fd is -1, thus the block of if (fd != -1) close(fd) is dead code.
Cc: Chad Versace <[email protected]>
Reviewed-by: Chia-I Wu <[email protected]>
Signed-off-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src/freedreno')
-rw-r--r-- | src/freedreno/vulkan/tu_device.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/freedreno/vulkan/tu_device.c b/src/freedreno/vulkan/tu_device.c index c7f4d0b26eb..1268624bd8d 100644 --- 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); |