aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2018-11-15 07:10:36 -0500
committerGerd Hoffmann <kraxel@redhat.com>2018-11-21 03:12:44 -0500
commita071a8ff1f5fd4aa6897c9260be548029b3acaff (patch)
tree02c9950da0527ab9c5d4b84b3771c6111bb89525 /drivers
parent61e49394a31aee438e026e553a1422e13e0309d9 (diff)
drm/cirrus: Remove set but not used variable 'bo'
Fixes gcc '-Wunused-but-set-variable' warning: drivers/gpu/drm/cirrus/cirrus_fbdev.c: In function 'cirrusfb_create': drivers/gpu/drm/cirrus/cirrus_fbdev.c:172:20: warning: variable 'bo' set but not used [-Wunused-but-set-variable] It never used since introduction in commit f9aa76a85248 ("drm/kms: driver for virtual cirrus under qemu") Signed-off-by: YueHaibing <yuehaibing@huawei.com> Link: http://patchwork.freedesktop.org/patch/msgid/1542283836-152176-1-git-send-email-yuehaibing@huawei.com Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/drm/cirrus/cirrus_fbdev.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/gpu/drm/cirrus/cirrus_fbdev.c b/drivers/gpu/drm/cirrus/cirrus_fbdev.c
index 68ab1821e15b..4dd499c7d1ba 100644
--- a/drivers/gpu/drm/cirrus/cirrus_fbdev.c
+++ b/drivers/gpu/drm/cirrus/cirrus_fbdev.c
@@ -169,7 +169,6 @@ static int cirrusfb_create(struct drm_fb_helper *helper,
169 struct drm_mode_fb_cmd2 mode_cmd; 169 struct drm_mode_fb_cmd2 mode_cmd;
170 void *sysram; 170 void *sysram;
171 struct drm_gem_object *gobj = NULL; 171 struct drm_gem_object *gobj = NULL;
172 struct cirrus_bo *bo = NULL;
173 int size, ret; 172 int size, ret;
174 173
175 mode_cmd.width = sizes->surface_width; 174 mode_cmd.width = sizes->surface_width;
@@ -185,8 +184,6 @@ static int cirrusfb_create(struct drm_fb_helper *helper,
185 return ret; 184 return ret;
186 } 185 }
187 186
188 bo = gem_to_cirrus_bo(gobj);
189
190 sysram = vmalloc(size); 187 sysram = vmalloc(size);
191 if (!sysram) 188 if (!sysram)
192 return -ENOMEM; 189 return -ENOMEM;