aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2010-05-31 13:23:22 -0400
committerDavid S. Miller <davem@davemloft.net>2010-06-01 03:15:54 -0400
commit5d55354f147bcf82b7a330bf9617b82a692b7d49 (patch)
tree4a2723ad497a795914cb86a69ae97245f8fcc535 /net/ipv6
parent3ed37a6fa70a3a63dbb257fc640facb3974bba40 (diff)
net/ipv6/mcast.c: Remove unnecessary kmalloc casts
Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6')
-rw-r--r--net/ipv6/mcast.c3
1 files changed, 1 insertions, 2 deletions
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)
1995 &psf->sf_addr)) 1995 &psf->sf_addr))
1996 break; 1996 break;
1997 if (!dpsf) { 1997 if (!dpsf) {
1998 dpsf = (struct ip6_sf_list *) 1998 dpsf = kmalloc(sizeof(*dpsf), GFP_ATOMIC);
1999 kmalloc(sizeof(*dpsf), GFP_ATOMIC);
2000 if (!dpsf) 1999 if (!dpsf)
2001 continue; 2000 continue;
2002 *dpsf = *psf; 2001 *dpsf = *psf;