]> Git Repo - linux.git/commitdiff
drm/qxl: drop redundant code
authorGerd Hoffmann <[email protected]>
Tue, 11 May 2021 10:45:21 +0000 (12:45 +0200)
committerGerd Hoffmann <[email protected]>
Wed, 12 May 2021 10:37:46 +0000 (12:37 +0200)
Not needed, qxl_io_destroy_primary() does that for us.

Signed-off-by: Gerd Hoffmann <[email protected]>
Acked-by: Thomas Zimmermann <[email protected]>
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
drivers/gpu/drm/qxl/qxl_display.c

index a7637e79cb4238dd723810c1792ef3ee6404483b..be5183733c1b31608ceabfebb2e800b3e405b1cc 100644 (file)
@@ -677,10 +677,8 @@ static void qxl_primary_atomic_disable(struct drm_plane *plane,
 
                if (bo->shadow)
                        bo = bo->shadow;
-               if (bo->is_primary) {
+               if (bo->is_primary)
                        qxl_io_destroy_primary(qdev);
-                       bo->is_primary = false;
-               }
        }
 }
 
This page took 0.054433 seconds and 4 git commands to generate.