projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3ed37a6
)
net/ipv6/mcast.c: Remove unnecessary kmalloc casts
author
Joe Perches
<joe@perches.com>
Mon, 31 May 2010 17:23:22 +0000
(17:23 +0000)
committer
David S. Miller
<davem@davemloft.net>
Tue, 1 Jun 2010 07:15:54 +0000
(
00:15
-0700)
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/mcast.c
patch
|
blob
|
blame
|
history
diff --git
a/net/ipv6/mcast.c
b/net/ipv6/mcast.c
index 59f1881968c70aad15b0296cf6400c6b0b3e49cb..7b5fb43c227cacf38041aa84c413f4d459bfe8f2 100644
(file)
--- 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;