From: Laurent Pinchart Date: Mon, 6 Jun 2016 18:14:51 +0000 (+0300) Subject: drm/qxl: Remove useless drm_fb_get_bpp_depth() call X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=cb76e3560a271ce570dff60869ddba1a08486c92;p=linux-beck.git 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 Reviewed-by: Eric Engestrom Signed-off-by: Daniel Vetter Link: http://patchwork.freedesktop.org/patch/msgid/1465236891-11773-1-git-send-email-laurent.pinchart@ideasonboard.com --- 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);