From patchwork Mon Nov 8 23:08:25 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jesper Juhl X-Patchwork-Id: 310762 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id oA99Fi9X019061 for ; Tue, 9 Nov 2010 09:16:04 GMT Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 68E759F0EC for ; Tue, 9 Nov 2010 01:15:44 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Tue, 09 Nov 2010 09:16:04 +0000 (UTC) X-Greylist: delayed 406 seconds by postgrey-1.31 at gabe; Mon, 08 Nov 2010 15:26:40 PST Received: from swampdragon.chaosbits.net (swampdragon.chaosbits.net [90.184.90.115]) by gabe.freedesktop.org (Postfix) with ESMTP id 1F7239E771 for ; Mon, 8 Nov 2010 15:26:40 -0800 (PST) Received: by swampdragon.chaosbits.net (Postfix, from userid 1000) id C05B09403F; Tue, 9 Nov 2010 00:08:25 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by swampdragon.chaosbits.net (Postfix) with ESMTP id BE6989403B; Tue, 9 Nov 2010 00:08:25 +0100 (CET) Date: Tue, 9 Nov 2010 00:08:25 +0100 (CET) From: Jesper Juhl To: linux-kernel@vger.kernel.org Subject: [PATCH 03/17][trivial] GPU DRM: Remove unnecessary casts of void ptr returning alloc function return values Message-ID: User-Agent: Alpine 2.00 (LNX 1167 2008-08-23) MIME-Version: 1.0 X-Mailman-Approved-At: Tue, 09 Nov 2010 01:13:45 -0800 Cc: trivial@kernel.org, dri-devel@lists.freedesktop.org X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org Errors-To: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org diff --git a/drivers/gpu/drm/drm_sman.c b/drivers/gpu/drm/drm_sman.c index 463aed9..3466458 100644 --- a/drivers/gpu/drm/drm_sman.c +++ b/drivers/gpu/drm/drm_sman.c @@ -59,9 +59,7 @@ drm_sman_init(struct drm_sman * sman, unsigned int num_managers, { int ret = 0; - sman->mm = (struct drm_sman_mm *) kcalloc(num_managers, - sizeof(*sman->mm), - GFP_KERNEL); + sman->mm = kcalloc(num_managers, sizeof(*sman->mm), GFP_KERNEL); if (!sman->mm) { ret = -ENOMEM; goto out;