OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.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
|
history
diff --git
a/net/ipv6/mcast.c
b/net/ipv6/mcast.c
index
59f1881
..
7b5fb43
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;