From patchwork Sat Jan 16 13:25:38 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thiago Farina X-Patchwork-Id: 73404 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.2) with ESMTP id o0GDQiSr018115 for ; Sat, 16 Jan 2010 13:26:44 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752605Ab0APN0O (ORCPT ); Sat, 16 Jan 2010 08:26:14 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752513Ab0APN0N (ORCPT ); Sat, 16 Jan 2010 08:26:13 -0500 Received: from mail-qy0-f194.google.com ([209.85.221.194]:36939 "EHLO mail-qy0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752435Ab0APN0M (ORCPT ); Sat, 16 Jan 2010 08:26:12 -0500 Received: by qyk32 with SMTP id 32so1011840qyk.4 for ; Sat, 16 Jan 2010 05:26:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:date :message-id:x-mailer; bh=vVE2lLY9raHC/NB8Vz1SgViYhPW5mo/9viTu5BcyEKQ=; b=hHTSaZb/rYGgR5AbvdXZ3DHUjIeVXOlWC+WK+y6BYUewPr78DumeTuOJvk+HwT9l/F 3xKaLfJOv0olwmZ5rbitaJwrTOi6Erkse+/cP2MumAU602XZMPSznMdf3aSPrQStunSU w5LG55wPgFo3zZSW+xSvYRZ9HboUrjhI2YhGo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; b=W3zVrKtGEwcMbf9kwSt1Z+WkLxGJPkosTNz5ICJannhZBAvw8x4eJL8FXWQ4Cd+MlE ovbUp5YkEbwCdcLKar4SgPMGRZu3SnXrZysdQHG++iCI+txmT5wqSZxhzFPxxUDMBaSa CGj5/tpsJWMhqal/gFa4FA/lBJjHxwsMwmCaQ= Received: by 10.224.16.71 with SMTP id n7mr3038890qaa.162.1263648369883; Sat, 16 Jan 2010 05:26:09 -0800 (PST) Received: from localhost ([189.60.214.75]) by mx.google.com with ESMTPS id 6sm6985353qwd.6.2010.01.16.05.26.07 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 16 Jan 2010 05:26:08 -0800 (PST) From: Thiago Farina To: linux-kernel@vger.kernel.org Cc: Mauro Carvalho Chehab , Devin Heitmueller , Janne Grunau , Patrick Boettcher , tstrelar@gmail.com, linux-media@vger.kernel.org Subject: [PATCH] dvb-core: remove unnecessary casting of kmalloc. Date: Sat, 16 Jan 2010 08:25:38 -0500 Message-Id: <5d6d41f6f7ebbb3c358bb804e01cbc0b7ca8859e.1263648089.git.tfransosi@gmail.com> X-Mailer: git-send-email 1.6.6.103.g699d2 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org diff --git a/drivers/media/dvb/dvb-core/dvb_frontend.c b/drivers/media/dvb/dvb-core/dvb_frontend.c index 0746122..8eb4a3b 100644 --- a/drivers/media/dvb/dvb-core/dvb_frontend.c +++ b/drivers/media/dvb/dvb-core/dvb_frontend.c @@ -1536,8 +1536,7 @@ static int dvb_frontend_ioctl_properties(struct inode *inode, struct file *file, if ((tvps->num == 0) || (tvps->num > DTV_IOCTL_MAX_MSGS)) return -EINVAL; - tvp = (struct dtv_property *) kmalloc(tvps->num * - sizeof(struct dtv_property), GFP_KERNEL); + tvp = kmalloc(tvps->num * sizeof(struct dtv_property), GFP_KERNEL); if (!tvp) { err = -ENOMEM; goto out; @@ -1569,8 +1568,7 @@ static int dvb_frontend_ioctl_properties(struct inode *inode, struct file *file, if ((tvps->num == 0) || (tvps->num > DTV_IOCTL_MAX_MSGS)) return -EINVAL; - tvp = (struct dtv_property *) kmalloc(tvps->num * - sizeof(struct dtv_property), GFP_KERNEL); + tvp = kmalloc(tvps->num * sizeof(struct dtv_property), GFP_KERNEL); if (!tvp) { err = -ENOMEM; goto out;