Commit 5d55354f authored by Joe Perches's avatar Joe Perches Committed by David S. Miller

net/ipv6/mcast.c: Remove unnecessary kmalloc casts

Signed-off-by: default avatarJoe Perches <joe@perches.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 3ed37a6f
...@@ -1995,8 +1995,7 @@ static int sf_setstate(struct ifmcaddr6 *pmc) ...@@ -1995,8 +1995,7 @@ static int sf_setstate(struct ifmcaddr6 *pmc)
&psf->sf_addr)) &psf->sf_addr))
break; break;
if (!dpsf) { if (!dpsf) {
dpsf = (struct ip6_sf_list *) dpsf = kmalloc(sizeof(*dpsf), GFP_ATOMIC);
kmalloc(sizeof(*dpsf), GFP_ATOMIC);
if (!dpsf) if (!dpsf)
continue; continue;
*dpsf = *psf; *dpsf = *psf;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment