mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 11:00:11 +01:00
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 <chadversary@chromium.org> Reviewed-by: Chia-I Wu <olvaffe@gmail.com> Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
This commit is contained in:
parent
00d4e78ea9
commit
1a9367c134
1 changed files with 0 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue