Commit cd2567a8 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧 Committed by Aleix Pol Gonzalez
Browse files

drm & wayland: Remove unnecessary close()

parent 1d5c803c
Pipeline #191943 passed with stage
in 21 minutes and 49 seconds
......@@ -642,10 +642,6 @@ std::optional<DmaBufParams> DrmBackend::testCreateDmaBuf(const QSize &size, quin
}
auto ret = dmaBufParamsForBo(bo);
// We are just testing to know it works and check the modifier, no need to keep the fd
for (int i = 0, c = gbm_bo_get_plane_count(bo); i < c; ++i) {
close(gbm_bo_get_fd_for_plane(bo, i));
}
gbm_bo_destroy(bo);
return ret;
}
......
......@@ -1036,10 +1036,6 @@ std::optional<DmaBufParams> WaylandBackend::testCreateDmaBuf(const QSize &size,
}
auto ret = dmaBufParamsForBo(bo);
// We are just testing to know it works and check the modifier, no need to keep the fd
for (int i = 0, c = gbm_bo_get_plane_count(bo); i < c; ++i) {
close(gbm_bo_get_fd_for_plane(bo, i));
}
gbm_bo_destroy(bo);
return ret;
}
......
Supports Markdown
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