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:
c61b93f
)
drm/ast: Remove useless drm_fb_get_bpp_depth() call
author
Laurent Pinchart
<
[email protected]
>
Mon, 6 Jun 2016 18:14:12 +0000
(21:14 +0300)
committer
Daniel Vetter
<
[email protected]
>
Tue, 7 Jun 2016 19:40:34 +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/1465236852-11710-1-git-send-email-laurent.pinchart@ideasonboard.com
drivers/gpu/drm/ast/ast_fb.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/ast/ast_fb.c
b/drivers/gpu/drm/ast/ast_fb.c
index 5320f8c57884567dd814aaac3ff595fde5f1425f..c017a9330a18991cbd05eaa9be7cfeef557de98e 100644
(file)
--- a/
drivers/gpu/drm/ast/ast_fb.c
+++ b/
drivers/gpu/drm/ast/ast_fb.c
@@
-167,12
+167,9
@@
static int astfb_create_object(struct ast_fbdev *afbdev,
struct drm_gem_object **gobj_p)
{
struct drm_device *dev = afbdev->helper.dev;
- u32 bpp, depth;
u32 size;
struct drm_gem_object *gobj;
-
int ret = 0;
- drm_fb_get_bpp_depth(mode_cmd->pixel_format, &depth, &bpp);
size = mode_cmd->pitches[0] * mode_cmd->height;
ret = ast_gem_create(dev, size, true, &gobj);