summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichel Dänzer <michel.daenzer@amd.com>2018-07-19 11:33:42 +0200
committerMichel Dänzer <michel@daenzer.net>2018-07-19 11:33:42 +0200
commit64bd009d17986c71726724859f100ad40a6e3096 (patch)
tree73c5cccba822632fce00230fc3db58c961cbead6
parent499d2f9d5d301ef1efd4ffc2952677609ef05122 (diff)
Don't allocate drmmode_output->props twice
This was accidentally duplicated when porting RandR lease support from amdgpu. Trivial.
-rw-r--r--src/drmmode_display.c5
1 files changed, 0 insertions, 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;