From 64bd009d17986c71726724859f100ad40a6e3096 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michel=20D=C3=A4nzer?= Date: Thu, 19 Jul 2018 11:33:42 +0200 Subject: Don't allocate drmmode_output->props twice This was accidentally duplicated when porting RandR lease support from amdgpu. Trivial. --- src/drmmode_display.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/drmmode_display.c b/src/drmmode_display.c index 2af64e3f..000c7fc6 100644 --- a/src/drmmode_display.c +++ b/src/drmmode_display.c @@ -1666,11 +1666,6 @@ drmmode_output_create_resources(xf86OutputPtr output) } } - drmmode_output->props = - calloc(mode_output->count_props + 1, sizeof(drmmode_prop_rec)); - if (!drmmode_output->props) - return; - drmmode_output->props = calloc(mode_output->count_props + 1, sizeof(drmmode_prop_rec)); if (!drmmode_output->props) return; -- cgit v1.2.3