diff --git a/plugins/platforms/drm/drm_backend.cpp b/plugins/platforms/drm/drm_backend.cpp index 9afa8b79c3..1641971928 100644 --- a/plugins/platforms/drm/drm_backend.cpp +++ b/plugins/platforms/drm/drm_backend.cpp @@ -710,7 +710,6 @@ DrmSurfaceBuffer *DrmBackend::createBuffer(gbm_surface *surface) { DrmSurfaceBuffer *b = new DrmSurfaceBuffer(this, surface); return b; - return nullptr; } #endif