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: firefly_0821_release~9833^2~1306^2~709 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=5d55354f147bcf82b7a330bf9617b82a692b7d49;p=firefly-linux-kernel-4.4.55.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;