Skip to content

Commit cb76e35

Browse files
pinchartldanvet
authored andcommitted
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
1 parent 683aa14 commit cb76e35

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

‎drivers/gpu/drm/qxl/qxl_fb.c‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,10 +131,6 @@ static int qxlfb_create_pinned_object(struct qxl_fbdev *qfbdev,
131131
int ret;
132132
int aligned_size, size;
133133
int height = mode_cmd->height;
134-
int bpp;
135-
int depth;
136-
137-
drm_fb_get_bpp_depth(mode_cmd->pixel_format, &bpp, &depth);
138134

139135
size = mode_cmd->pitches[0] * height;
140136
aligned_size = ALIGN(size, PAGE_SIZE);

0 commit comments

Comments
 (0)