Commit 1a9367c1 authored by Emil Velikov's avatar Emil Velikov Committed by Emil Velikov
Browse files

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 <>
Reviewed-by: Chia-I Wu's avatarChia-I Wu <>
Signed-off-by: Emil Velikov's avatarEmil Velikov <>
parent 00d4e78e
......@@ -198,8 +198,6 @@ tu_physical_device_init(struct tu_physical_device *device,
if (strcmp(version->name, "msm")) {
if (master_fd != -1)
return vk_errorf(instance, VK_ERROR_INCOMPATIBLE_DRIVER,
"device %s does not use the msm kernel driver", path);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment