aboutsummaryrefslogtreecommitdiff
path: root/render
diff options
context:
space:
mode:
Diffstat (limited to 'render')
-rw-r--r--render/drm_format_set.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/render/drm_format_set.c b/render/drm_format_set.c
index df3efd30..b8c33aa6 100644
--- a/render/drm_format_set.c
+++ b/render/drm_format_set.c
@@ -153,12 +153,6 @@ bool wlr_drm_format_set_copy(struct wlr_drm_format_set *dst, const struct wlr_dr
size_t i;
for (i = 0; i < src->len; i++) {
- struct wlr_drm_format *fmt = calloc(1, sizeof(*fmt));
- if (!fmt) {
- wlr_drm_format_set_finish(&out);
- return false;
- }
-
out.formats[out.len] = (struct wlr_drm_format){0};
if (!wlr_drm_format_copy(&out.formats[out.len], &src->formats[i])) {
wlr_drm_format_set_finish(&out);