]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
drm/omap: Remove set but not used variable 'plane'
authorzhengbin <zhengbin13@huawei.com>
Tue, 8 Oct 2019 07:15:46 +0000 (15:15 +0800)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Mon, 14 Oct 2019 11:20:22 +0000 (14:20 +0300)
Fixes gcc '-Wunused-but-set-variable' warning:

drivers/gpu/drm/omapdrm/omap_fb.c: In function omap_framebuffer_update_scanout:
drivers/gpu/drm/omapdrm/omap_fb.c:130:16: warning: variable plane set but not used [-Wunused-but-set-variable]

It is not used since commit 2ecceeb53b19 ("drm/omap:
Move buffer pitch/offset to drm_framebuffer")

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: zhengbin <zhengbin13@huawei.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Link: https://patchwork.freedesktop.org/patch/msgid/1570518949-47574-2-git-send-email-zhengbin13@huawei.com
drivers/gpu/drm/omapdrm/omap_fb.c

index 7403316088b81c855afb712d4ed7f8529a95b797..9aeab81dfb90e760d65b9a35b99600ea8939469d 100644 (file)
@@ -135,7 +135,6 @@ void omap_framebuffer_update_scanout(struct drm_framebuffer *fb,
 {
        struct omap_framebuffer *omap_fb = to_omap_framebuffer(fb);
        const struct drm_format_info *format = omap_fb->format;
-       struct plane *plane = &omap_fb->planes[0];
        u32 x, y, orient = 0;
 
        info->fourcc = fb->format->format;
@@ -209,8 +208,6 @@ void omap_framebuffer_update_scanout(struct drm_framebuffer *fb,
        info->screen_width /= format->cpp[0];
 
        if (fb->format->format == DRM_FORMAT_NV12) {
-               plane = &omap_fb->planes[1];
-
                if (info->rotation_type == OMAP_DSS_ROT_TILER) {
                        WARN_ON(!(omap_gem_flags(fb->obj[1]) & OMAP_BO_TILED_MASK));
                        omap_gem_rotated_dma_addr(fb->obj[1], orient, x/2, y/2,