diff options
| author | YueHaibing <yuehaibing@huawei.com> | 2018-12-08 03:36:25 -0500 |
|---|---|---|
| committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2018-12-10 05:26:41 -0500 |
| commit | 32658d2c8073699473c28b67f14ad51403ccec5d (patch) | |
| tree | 2452cd94dad2e91a6da42702fb85a465cca2c989 /drivers/gpu/drm | |
| parent | 16bff572cc660f19e58c99941368dea050b36a05 (diff) | |
drm/ast: Remove set but not used variable 'bo'
Fixes gcc '-Wunused-but-set-variable' warning:
drivers/gpu/drm/ast/ast_fb.c: In function 'astfb_create':
drivers/gpu/drm/ast/ast_fb.c:194:17: warning:
variable 'bo' set but not used [-Wunused-but-set-variable]
It never used since introduction in commit 312fec1405dd ("drm: Initial KMS
driver for AST (ASpeed Technologies) 2000 series (v2)")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/1544258185-50430-1-git-send-email-yuehaibing@huawei.com
Diffstat (limited to 'drivers/gpu/drm')
| -rw-r--r-- | drivers/gpu/drm/ast/ast_fb.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/gpu/drm/ast/ast_fb.c b/drivers/gpu/drm/ast/ast_fb.c index 0cd827e11fa2..a80bca1a857f 100644 --- a/drivers/gpu/drm/ast/ast_fb.c +++ b/drivers/gpu/drm/ast/ast_fb.c | |||
| @@ -191,7 +191,6 @@ static int astfb_create(struct drm_fb_helper *helper, | |||
| 191 | int size, ret; | 191 | int size, ret; |
| 192 | void *sysram; | 192 | void *sysram; |
| 193 | struct drm_gem_object *gobj = NULL; | 193 | struct drm_gem_object *gobj = NULL; |
| 194 | struct ast_bo *bo = NULL; | ||
| 195 | mode_cmd.width = sizes->surface_width; | 194 | mode_cmd.width = sizes->surface_width; |
| 196 | mode_cmd.height = sizes->surface_height; | 195 | mode_cmd.height = sizes->surface_height; |
| 197 | mode_cmd.pitches[0] = mode_cmd.width * ((sizes->surface_bpp + 7)/8); | 196 | mode_cmd.pitches[0] = mode_cmd.width * ((sizes->surface_bpp + 7)/8); |
| @@ -206,7 +205,6 @@ static int astfb_create(struct drm_fb_helper *helper, | |||
| 206 | DRM_ERROR("failed to create fbcon backing object %d\n", ret); | 205 | DRM_ERROR("failed to create fbcon backing object %d\n", ret); |
| 207 | return ret; | 206 | return ret; |
| 208 | } | 207 | } |
| 209 | bo = gem_to_ast_bo(gobj); | ||
| 210 | 208 | ||
| 211 | sysram = vmalloc(size); | 209 | sysram = vmalloc(size); |
| 212 | if (!sysram) | 210 | if (!sysram) |
