From: Vlad Yasevich <vladislav.yasevich@hp.com>
To: Joe Perches <joe@perches.com>
Cc: linux-kernel@vger.kernel.org, Sridhar Samudrala <sri@us.ibm.com>,
linux-sctp@vger.kernel.org
Subject: Re: [PATCH 21/21] net/sctp/protocol.c: Remove unnecessary kmalloc
Date: Wed, 02 Jun 2010 17:30:57 +0000 [thread overview]
Message-ID: <4C069551.8020106@hp.com> (raw)
In-Reply-To: <789ef255b7c046dd11fad6ca8c057354b6306c7f.1275360951.git.joe@perches.com>
ACK
-vlad
Joe Perches wrote:
> Signed-off-by: Joe Perches <joe@perches.com>
> ---
> 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;
WARNING: multiple messages have this Message-ID (diff)
From: Vlad Yasevich <vladislav.yasevich@hp.com>
To: Joe Perches <joe@perches.com>
Cc: linux-kernel@vger.kernel.org, Sridhar Samudrala <sri@us.ibm.com>,
linux-sctp@vger.kernel.org
Subject: Re: [PATCH 21/21] net/sctp/protocol.c: Remove unnecessary kmalloc casts
Date: Wed, 02 Jun 2010 13:30:57 -0400 [thread overview]
Message-ID: <4C069551.8020106@hp.com> (raw)
In-Reply-To: <789ef255b7c046dd11fad6ca8c057354b6306c7f.1275360951.git.joe@perches.com>
ACK
-vlad
Joe Perches wrote:
> Signed-off-by: Joe Perches <joe@perches.com>
> ---
> 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;
next prev parent reply other threads:[~2010-06-02 17:30 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-01 3:23 [PATCH 00/21] Remove unnecessary kmalloc casts Joe Perches
2010-06-01 3:23 ` [PATCH 01/21] arch/cris: " Joe Perches
2010-06-01 3:23 ` [PATCH 02/21] arch/powerpc: " Joe Perches
2010-06-01 3:23 ` Joe Perches
2010-06-01 3:23 ` [PATCH 03/21] arch/x86/kernel/tlb_uv.c: " Joe Perches
2010-06-01 3:23 ` [PATCH 04/21] drivers/block/cciss_scsi.c: " Joe Perches
2010-06-01 15:26 ` Miller, Mike (OS Dev)
2010-06-01 3:23 ` [PATCH 05/21] drivers/gpu/drm: " Joe Perches
2010-06-01 3:23 ` [PATCH 06/21] drivers/i2c/i2c-dev.c: " Joe Perches
2010-06-01 10:57 ` Jean Delvare
2010-06-01 3:23 ` [PATCH 07/21] drivers/isdn/capi/capidrv.c: " Joe Perches
2010-06-01 3:23 ` [PATCH 08/21] drivers/media: Remove unnecesary " Joe Perches
2010-06-01 3:23 ` [PATCH 09/21] drivers/message/i2o/i20_config.c: Remove unnecessary " Joe Perches
2010-06-01 3:23 ` [PATCH 10/21] drivers/net/gianfar.c: " Joe Perches
2010-06-01 7:17 ` David Miller
2010-06-01 3:23 ` [PATCH 11/21] drivers/net/tulip/eeprom.c: " Joe Perches
2010-06-01 7:17 ` David Miller
2010-06-01 3:23 ` [PATCH 12/21] drivers/net/vxge/vxge-main.c: " Joe Perches
2010-06-01 3:23 ` [PATCH 13/21] drivers/net/wireless/ipw2x00/ipw2100.c: " Joe Perches
2010-06-01 3:23 ` [PATCH 14/21] drivers/parisc/iosapic.c: Remove unnecessary kzalloc cast Joe Perches
2010-06-01 21:02 ` Grant Grundler
2010-06-01 3:23 ` [PATCH 15/21] drivers/s390: Remove unnecessary kmalloc casts Joe Perches
2010-06-01 3:23 ` [PATCH 16/21] drivers/serial/icom.c: " Joe Perches
2010-06-01 3:23 ` [PATCH 17/21] drivers/usb/storage/isd200.c: " Joe Perches
2010-06-01 3:23 ` [PATCH 18/21] fs/ufs/util.c: " Joe Perches
2010-06-01 3:23 ` [PATCH 19/21] net/ipv4/igmp.c: " Joe Perches
2010-06-01 7:17 ` David Miller
2010-06-01 3:23 ` [PATCH 20/21] net/ipv6/mcast.c: " Joe Perches
2010-06-01 7:17 ` David Miller
2010-06-01 3:23 ` [PATCH 21/21] net/sctp/protocol.c: " Joe Perches
2010-06-01 3:23 ` Joe Perches
2010-06-02 17:30 ` Vlad Yasevich [this message]
2010-06-02 17:30 ` Vlad Yasevich
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4C069551.8020106@hp.com \
--to=vladislav.yasevich@hp.com \
--cc=joe@perches.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sctp@vger.kernel.org \
--cc=sri@us.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.