projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
683aa14
)
drm/qxl: Remove useless drm_fb_get_bpp_depth() call
author
Laurent Pinchart
<
[email protected]
>
Mon, 6 Jun 2016 18:14:51 +0000
(21:14 +0300)
committer
Daniel Vetter
<
[email protected]
>
Tue, 7 Jun 2016 19:40:52 +0000
(21:40 +0200)
The function has no side effect and its returned values are ignored,
don't call it.
Signed-off-by: Laurent Pinchart <
[email protected]
>
Reviewed-by: Eric Engestrom <
[email protected]
>
Signed-off-by: Daniel Vetter <
[email protected]
>
Link:
http://patchwork.freedesktop.org/patch/msgid/1465236891-11773-1-git-send-email-laurent.pinchart@ideasonboard.com
drivers/gpu/drm/qxl/qxl_fb.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/qxl/qxl_fb.c
b/drivers/gpu/drm/qxl/qxl_fb.c
index 5ea57f6320b880e78b6183965751198350134e3e..df2657051afd7c7eaa6de39683b99f6190f214db 100644
(file)
--- 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);