Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/omap: Remove set but not used variable 'plane'

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

authored by

zhengbin and committed by
Tomi Valkeinen
57d55bb5 1f6c62ca

-3
-3
drivers/gpu/drm/omapdrm/omap_fb.c
··· 135 135 { 136 136 struct omap_framebuffer *omap_fb = to_omap_framebuffer(fb); 137 137 const struct drm_format_info *format = omap_fb->format; 138 - struct plane *plane = &omap_fb->planes[0]; 139 138 u32 x, y, orient = 0; 140 139 141 140 info->fourcc = fb->format->format; ··· 208 209 info->screen_width /= format->cpp[0]; 209 210 210 211 if (fb->format->format == DRM_FORMAT_NV12) { 211 - plane = &omap_fb->planes[1]; 212 - 213 212 if (info->rotation_type == OMAP_DSS_ROT_TILER) { 214 213 WARN_ON(!(omap_gem_flags(fb->obj[1]) & OMAP_BO_TILED_MASK)); 215 214 omap_gem_rotated_dma_addr(fb->obj[1], orient, x/2, y/2,