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:
589be65
)
net/ipv4/igmp.c: Remove unnecessary kmalloc casts
author
Joe Perches
<joe@perches.com>
Mon, 31 May 2010 17:23:21 +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/ipv4/igmp.c
patch
|
blob
|
blame
|
history
diff --git
a/net/ipv4/igmp.c
b/net/ipv4/igmp.c
index 5fff865a4fa745c02cf93e65323f3316ae8299d0..250cb5e1af4842ba3e62605dfb8e6fec5c242150 100644
(file)
--- a/
net/ipv4/igmp.c
+++ b/
net/ipv4/igmp.c
@@
-1646,8
+1646,7
@@
static int sf_setstate(struct ip_mc_list *pmc)
if (dpsf->sf_inaddr == psf->sf_inaddr)
break;
if (!dpsf) {
- dpsf = (struct ip_sf_list *)
- kmalloc(sizeof(*dpsf), GFP_ATOMIC);
+ dpsf = kmalloc(sizeof(*dpsf), GFP_ATOMIC);
if (!dpsf)
continue;
*dpsf = *psf;