Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 683aa14c authored by Laurent Pinchart's avatar Laurent Pinchart Committed by Daniel Vetter
Browse files

drm/ast: Remove useless drm_fb_get_bpp_depth() call

parent c61b93fe
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -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);