From: Joe Perches Date: Mon, 31 May 2010 17:23:22 +0000 (+0000) Subject: net/ipv6/mcast.c: Remove unnecessary kmalloc casts X-Git-Tag: v2.6.36-rc1~571^2~709 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=5d55354f147bcf82b7a330bf9617b82a692b7d49;p=karo-tx-linux.git net/ipv6/mcast.c: Remove unnecessary kmalloc casts Signed-off-by: Joe Perches Signed-off-by: David S. Miller --- diff --git a/net/ipv6/mcast.c b/net/ipv6/mcast.c index 59f1881968c7..7b5fb43c227c 100644 --- a/net/ipv6/mcast.c +++ b/net/ipv6/mcast.c @@ -1995,8 +1995,7 @@ static int sf_setstate(struct ifmcaddr6 *pmc) &psf->sf_addr)) break; if (!dpsf) { - dpsf = (struct ip6_sf_list *) - kmalloc(sizeof(*dpsf), GFP_ATOMIC); + dpsf = kmalloc(sizeof(*dpsf), GFP_ATOMIC); if (!dpsf) continue; *dpsf = *psf;