From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christopher Harvey Subject: [PATCH] drm/mgag200: Cleanup: Remove pointless call to drm_fb_get_bpp_depth Date: Tue, 26 Feb 2013 10:53:58 -0500 Message-ID: <20130226155358.GA18614@harvey-pc.matrox.com> References: <20130226155255.GA18595@harvey-pc.matrox.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mtxmxout5.matrox.com (mtxmxout5.matrox.com [138.11.2.95]) by gabe.freedesktop.org (Postfix) with ESMTP id 6B3C4E65B7 for ; Tue, 26 Feb 2013 08:14:26 -0800 (PST) Received: from venus.matrox.com (venus.matrox.com [192.168.1.30]) by mtxmxout5.matrox.com (Postfix) with ESMTP id 314131C6E03 for ; Tue, 26 Feb 2013 10:49:39 -0500 (EST) Received: (from ssmsp@localhost) by venus.matrox.com (8.14.4/8.13.2) id r1QFnc2q022879 for dri-devel@lists.freedesktop.org; Tue, 26 Feb 2013 10:49:38 -0500 Received: from localhost (localhost.localdomain [127.0.0.1]) by venus.matrox.com (Postfix) with ESMTP id B062AF4DB8 for ; Tue, 26 Feb 2013 10:49:38 -0500 (EST) Received: from pluton.matrox.com (pluton.matrox.com [192.168.8.7]) by venus.matrox.com (Postfix) with ESMTP id 8A500F4DB5 for ; Tue, 26 Feb 2013 10:49:38 -0500 (EST) Content-Disposition: inline In-Reply-To: <20130226155255.GA18595@harvey-pc.matrox.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org To: dri-devel@lists.freedesktop.org Cc: Julia Lemire , Mathieu Larouche List-Id: dri-devel@lists.freedesktop.org Signed-off-by: Christopher Harvey --- drivers/gpu/drm/mgag200/mgag200_fb.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/gpu/drm/mgag200/mgag200_fb.c b/drivers/gpu/drm/mgag200/mgag200_fb.c index 2f48648..d46bd2c 100644 --- a/drivers/gpu/drm/mgag200/mgag200_fb.c +++ b/drivers/gpu/drm/mgag200/mgag200_fb.c @@ -104,12 +104,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); -- 1.7.12.4