summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/ast
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2016-06-06 20:14:12 +0200
committerDaniel Vetter <daniel.vetter@ffwll.ch>2016-06-07 21:40:34 +0200
commit683aa14c6232f1c50a1a0e03dd08a767ca41a6b1 (patch)
treed42eddd63eb6e903d3c5e06f1bb51af91b0bd0d7 /drivers/gpu/drm/ast
parentdrm/atomic: Fix remaining places where !funcs->best_encoder is valid (diff)
downloadlinux-683aa14c6232f1c50a1a0e03dd08a767ca41a6b1.tar.xz
linux-683aa14c6232f1c50a1a0e03dd08a767ca41a6b1.zip
drm/ast: Remove useless drm_fb_get_bpp_depth() call
The function has no side effect and its returned values are ignored, don't call it. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Link: http://patchwork.freedesktop.org/patch/msgid/1465236852-11710-1-git-send-email-laurent.pinchart@ideasonboard.com
Diffstat (limited to 'drivers/gpu/drm/ast')
-rw-r--r--drivers/gpu/drm/ast/ast_fb.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/gpu/drm/ast/ast_fb.c b/drivers/gpu/drm/ast/ast_fb.c
index 5320f8c57884..c017a9330a18 100644
--- a/drivers/gpu/drm/ast/ast_fb.c
+++ b/drivers/gpu/drm/ast/ast_fb.c
@@ -167,12 +167,9 @@ static int astfb_create_object(struct ast_fbdev *afbdev,
struct drm_gem_object **gobj_p)
{
struct drm_device *dev = afbdev->helper.dev;
- u32 bpp, depth;
u32 size;
struct drm_gem_object *gobj;
-
int ret = 0;
- drm_fb_get_bpp_depth(mode_cmd->pixel_format, &depth, &bpp);
size = mode_cmd->pitches[0] * mode_cmd->height;
ret = ast_gem_create(dev, size, true, &gobj);