aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2016-06-06 14:14:51 -0400
committerDaniel Vetter <daniel.vetter@ffwll.ch>2016-06-07 15:40:52 -0400
commitcb76e3560a271ce570dff60869ddba1a08486c92 (patch)
treea21d6b7d441a6ff8b331aff175da5a694f67c0c8
parent683aa14c6232f1c50a1a0e03dd08a767ca41a6b1 (diff)
drm/qxl: 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/1465236891-11773-1-git-send-email-laurent.pinchart@ideasonboard.com
-rw-r--r--drivers/gpu/drm/qxl/qxl_fb.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/gpu/drm/qxl/qxl_fb.c b/drivers/gpu/drm/qxl/qxl_fb.c
index 5ea57f6320b8..df2657051afd 100644
--- a/drivers/gpu/drm/qxl/qxl_fb.c
+++ b/drivers/gpu/drm/qxl/qxl_fb.c
@@ -131,10 +131,6 @@ static int qxlfb_create_pinned_object(struct qxl_fbdev *qfbdev,
131 int ret; 131 int ret;
132 int aligned_size, size; 132 int aligned_size, size;
133 int height = mode_cmd->height; 133 int height = mode_cmd->height;
134 int bpp;
135 int depth;
136
137 drm_fb_get_bpp_depth(mode_cmd->pixel_format, &bpp, &depth);
138 134
139 size = mode_cmd->pitches[0] * height; 135 size = mode_cmd->pitches[0] * height;
140 aligned_size = ALIGN(size, PAGE_SIZE); 136 aligned_size = ALIGN(size, PAGE_SIZE);