From: Christopher Harvey Date: Mon, 18 Feb 2013 22:33:49 +0000 (-0500) Subject: drm/mgag200: Remove pointless call to drm_fb_get_bpp_depth X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=67d411ddb9def691572cd5ad0ee2991510d860d2;p=linux-beck.git drm/mgag200: Remove pointless call to drm_fb_get_bpp_depth Signed-off-by: Christopher Harvey Signed-off-by: Dave Airlie --- diff --git a/drivers/gpu/drm/mgag200/mgag200_fb.c b/drivers/gpu/drm/mgag200/mgag200_fb.c index 2ebe0f635b26..421beabec45b 100644 --- a/drivers/gpu/drm/mgag200/mgag200_fb.c +++ b/drivers/gpu/drm/mgag200/mgag200_fb.c @@ -105,12 +105,9 @@ static int mgag200fb_create_object(struct mga_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 = mgag200_gem_create(dev, size, true, &gobj);