Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757340Ab0FBRk7 (ORCPT ); Wed, 2 Jun 2010 13:40:59 -0400 Received: from g6t0184.atlanta.hp.com ([15.193.32.61]:31207 "EHLO g6t0184.atlanta.hp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752056Ab0FBRk5 (ORCPT ); Wed, 2 Jun 2010 13:40:57 -0400 X-Greylist: delayed 597 seconds by postgrey-1.27 at vger.kernel.org; Wed, 02 Jun 2010 13:40:57 EDT Message-ID: <4C069551.8020106@hp.com> Date: Wed, 02 Jun 2010 13:30:57 -0400 From: Vlad Yasevich User-Agent: Thunderbird 2.0.0.24 (X11/20100317) MIME-Version: 1.0 To: Joe Perches CC: linux-kernel@vger.kernel.org, Sridhar Samudrala , linux-sctp@vger.kernel.org Subject: Re: [PATCH 21/21] net/sctp/protocol.c: Remove unnecessary kmalloc casts References: <789ef255b7c046dd11fad6ca8c057354b6306c7f.1275360951.git.joe@perches.com> In-Reply-To: <789ef255b7c046dd11fad6ca8c057354b6306c7f.1275360951.git.joe@perches.com> X-Enigmail-Version: 0.96.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1027 Lines: 29 ACK -vlad Joe Perches wrote: > Signed-off-by: Joe Perches > --- > net/sctp/protocol.c | 3 +-- > 1 files changed, 1 insertions(+), 2 deletions(-) > > diff --git a/net/sctp/protocol.c b/net/sctp/protocol.c > index 1827498..fef38be 100644 > --- a/net/sctp/protocol.c > +++ b/net/sctp/protocol.c > @@ -1216,8 +1216,7 @@ SCTP_STATIC __init int sctp_init(void) > > /* Allocate and initialize the endpoint hash table. */ > sctp_ep_hashsize = 64; > - sctp_ep_hashtable = (struct sctp_hashbucket *) > - kmalloc(64 * sizeof(struct sctp_hashbucket), GFP_KERNEL); > + sctp_ep_hashtable = kmalloc(64 * sizeof(struct sctp_hashbucket), GFP_KERNEL); > if (!sctp_ep_hashtable) { > printk(KERN_ERR "SCTP: Failed endpoint_hash alloc.\n"); > status = -ENOMEM; -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/