From 1e01b1334e5800cd004308370d98684962d00f2d Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Tue, 13 Oct 2020 21:02:32 +0300 Subject: [PATCH] platforms/drm: Remove redundant drmModeGetResources --- plugins/platforms/drm/drm_backend.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/plugins/platforms/drm/drm_backend.cpp b/plugins/platforms/drm/drm_backend.cpp index f26d2a3a9e..8a3ed45f27 100644 --- a/plugins/platforms/drm/drm_backend.cpp +++ b/plugins/platforms/drm/drm_backend.cpp @@ -255,7 +255,6 @@ void DrmBackend::openDrm() drmModeRes *resources = drmModeGetResources(fd); if (!resources) { qCDebug(KWIN_DRM) << "Skipping KMS incapable drm device node at" << devNode; - drmModeFreeResources(resources); LogindIntegration::self()->releaseDevice(fd); continue; }