summaryrefslogtreecommitdiffstats
path: root/net/ipv6
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2010-05-31 17:23:22 +0000
committerDavid S. Miller <davem@davemloft.net>2010-06-01 00:15:54 -0700
commit5d55354f147bcf82b7a330bf9617b82a692b7d49 (patch)
tree4a2723ad497a795914cb86a69ae97245f8fcc535 /net/ipv6
parent3ed37a6fa70a3a63dbb257fc640facb3974bba40 (diff)
downloadlinux-5d55354f147bcf82b7a330bf9617b82a692b7d49.tar.gz
linux-5d55354f147bcf82b7a330bf9617b82a692b7d49.tar.bz2
linux-5d55354f147bcf82b7a330bf9617b82a692b7d49.zip
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)
&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;