From: Joe Perches Date: Mon, 31 May 2010 17:23:21 +0000 (+0000) Subject: net/ipv4/igmp.c: Remove unnecessary kmalloc casts X-Git-Tag: upstream/snapshot3+hdmi~13787^2~710 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3ed37a6fa70a3a63dbb257fc640facb3974bba40;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git net/ipv4/igmp.c: Remove unnecessary kmalloc casts Signed-off-by: Joe Perches Signed-off-by: David S. Miller --- diff --git a/net/ipv4/igmp.c b/net/ipv4/igmp.c index 5fff865..250cb5e 100644 --- a/net/ipv4/igmp.c +++ b/net/ipv4/igmp.c @@ -1646,8 +1646,7 @@ static int sf_setstate(struct ip_mc_list *pmc) if (dpsf->sf_inaddr == psf->sf_inaddr) break; if (!dpsf) { - dpsf = (struct ip_sf_list *) - kmalloc(sizeof(*dpsf), GFP_ATOMIC); + dpsf = kmalloc(sizeof(*dpsf), GFP_ATOMIC); if (!dpsf) continue; *dpsf = *psf;