[PATCH] drm/gma500: Remove unused 'psbfb' variable

Ville Syrjala ville.syrjala at linux.intel.com
Thu Jun 21 16:22:21 UTC 2018


From: Ville Syrjälä <ville.syrjala at linux.intel.com>

'psbfb' has been unused since commit c7cbed560ce2 ("drm/gma500:
Fix Medfield for drm_framebuffer move") so remove it entirely.

../drivers/gpu/drm/gma500/mdfld_intel_display.c: In function ‘mdfld__intel_pipe_set_base’:
../drivers/gpu/drm/gma500/mdfld_intel_display.c:170:26: warning: unused variable ‘psbfb’ [-Wunused-variable]
  struct psb_framebuffer *psbfb = to_psb_fb(fb);

Cc: Daniel Stone <daniels at collabora.com>
Cc: Thierry Reding <treding at nvidia.com>
Cc: Patrik Jakobsson <patrik.r.jakobsson at gmail.com>
Signed-off-by: Ville Syrjälä <ville.syrjala at linux.intel.com>
---
 drivers/gpu/drm/gma500/mdfld_intel_display.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/gpu/drm/gma500/mdfld_intel_display.c b/drivers/gpu/drm/gma500/mdfld_intel_display.c
index 881d613cc2e5..2b9fa0163dea 100644
--- a/drivers/gpu/drm/gma500/mdfld_intel_display.c
+++ b/drivers/gpu/drm/gma500/mdfld_intel_display.c
@@ -167,7 +167,6 @@ static int mdfld__intel_pipe_set_base(struct drm_crtc *crtc, int x, int y,
 	struct drm_psb_private *dev_priv = dev->dev_private;
 	struct drm_framebuffer *fb = crtc->primary->fb;
 	struct gma_crtc *gma_crtc = to_gma_crtc(crtc);
-	struct psb_framebuffer *psbfb = to_psb_fb(fb);
 	int pipe = gma_crtc->pipe;
 	const struct psb_offset *map = &dev_priv->regmap[pipe];
 	unsigned long start, offset;
-- 
2.16.4



More information about the dri-devel mailing list