aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/igmp.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2010-05-31 13:23:21 -0400
committerDavid S. Miller <davem@davemloft.net>2010-06-01 03:15:54 -0400
commit3ed37a6fa70a3a63dbb257fc640facb3974bba40 (patch)
tree74722d590bb45aebae53890c25a8dcbae6090a13 /net/ipv4/igmp.c
parent589be6500560c70f4873f8c1fb66671624944433 (diff)
net/ipv4/igmp.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/ipv4/igmp.c')
-rw-r--r--net/ipv4/igmp.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/net/ipv4/igmp.c b/net/ipv4/igmp.c
index 5fff865a4fa7..250cb5e1af48 100644
--- a/net/ipv4/igmp.c
+++ b/net/ipv4/igmp.c
@@ -1646,8 +1646,7 @@ static int sf_setstate(struct ip_mc_list *pmc)
1646 if (dpsf->sf_inaddr == psf->sf_inaddr) 1646 if (dpsf->sf_inaddr == psf->sf_inaddr)
1647 break; 1647 break;
1648 if (!dpsf) { 1648 if (!dpsf) {
1649 dpsf = (struct ip_sf_list *) 1649 dpsf = kmalloc(sizeof(*dpsf), GFP_ATOMIC);
1650 kmalloc(sizeof(*dpsf), GFP_ATOMIC);
1651 if (!dpsf) 1650 if (!dpsf)
1652 continue; 1651 continue;
1653 *dpsf = *psf; 1652 *dpsf = *psf;