drm/plane-helper: fix uninitialized variable reference
authorjsg <jsg@openbsd.org>
Fri, 19 Nov 2021 03:22:29 +0000 (03:22 +0000)
committerjsg <jsg@openbsd.org>
Fri, 19 Nov 2021 03:22:29 +0000 (03:22 +0000)
From Alex Xu
2e548581fe5b48730d814916bd6bb8f8d8b5375a in linux 5.10.y/5.10.80
7be28bd73f23e53d6e7f5fe891ba9503fc0c7210 in mainline linux

sys/dev/pci/drm/drm_plane_helper.c

index 3aae7ea..c3f2292 100644 (file)
@@ -123,7 +123,6 @@ static int drm_plane_helper_check_update(struct drm_plane *plane,
                .crtc_w = drm_rect_width(dst),
                .crtc_h = drm_rect_height(dst),
                .rotation = rotation,
-               .visible = *visible,
        };
        struct drm_crtc_state crtc_state = {
                .crtc = crtc,