summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/qxl
diff options
context:
space:
mode:
authorLaurent Pinchart2016-06-06 20:14:51 +0200
committerDaniel Vetter2016-06-07 21:40:52 +0200
commitcb76e3560a271ce570dff60869ddba1a08486c92 (patch)
treea21d6b7d441a6ff8b331aff175da5a694f67c0c8 /drivers/gpu/drm/qxl
parentdrm/ast: Remove useless drm_fb_get_bpp_depth() call (diff)
downloadkernel-qcow2-linux-cb76e3560a271ce570dff60869ddba1a08486c92.tar.gz
kernel-qcow2-linux-cb76e3560a271ce570dff60869ddba1a08486c92.tar.xz
kernel-qcow2-linux-cb76e3560a271ce570dff60869ddba1a08486c92.zip
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
Diffstat (limited to 'drivers/gpu/drm/qxl')
-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,
int ret;
int aligned_size, size;
int height = mode_cmd->height;
- int bpp;
- int depth;
-
- drm_fb_get_bpp_depth(mode_cmd->pixel_format, &bpp, &depth);
size = mode_cmd->pitches[0] * height;
aligned_size = ALIGN(size, PAGE_SIZE);