From 808129b95acb962ccbb97e294710f71cc962692e Mon Sep 17 00:00:00 2001 From: Mark Yao Date: Wed, 14 Dec 2016 11:47:21 +0800 Subject: [PATCH] drm/rockchip: fix compile warning unused private Fix warning: drivers/gpu/drm/rockchip/rockchip_drm_fb.c: In function 'rockchip_drm_fb_destroy': drivers/gpu/drm/rockchip/rockchip_drm_fb.c:50:31: warning: unused variable 'private' [-Wunused-variable] Change-Id: Id120d86173823a68b9136a99f17fe5415041e471 Signed-off-by: Mark Yao --- drivers/gpu/drm/rockchip/rockchip_drm_fb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_fb.c b/drivers/gpu/drm/rockchip/rockchip_drm_fb.c index 39759c8a6fc5..7bb9e787bf41 100644 --- a/drivers/gpu/drm/rockchip/rockchip_drm_fb.c +++ b/drivers/gpu/drm/rockchip/rockchip_drm_fb.c @@ -47,7 +47,6 @@ dma_addr_t rockchip_fb_get_dma_addr(struct drm_framebuffer *fb, static void rockchip_drm_fb_destroy(struct drm_framebuffer *fb) { struct rockchip_drm_fb *rockchip_fb = to_rockchip_fb(fb); - struct rockchip_drm_private *private = fb->dev->dev_private; struct drm_gem_object *obj; int i; @@ -59,6 +58,7 @@ static void rockchip_drm_fb_destroy(struct drm_framebuffer *fb) #ifndef MODULE if (rockchip_fb->logo) { + struct rockchip_drm_private *private = fb->dev->dev_private; struct rockchip_logo *logo = rockchip_fb->logo; if (!--logo->count) { -- 2.34.1