提交 3ed37a6f 编写于 作者: J Joe Perches 提交者: David S. Miller

net/ipv4/igmp.c: Remove unnecessary kmalloc casts

Signed-off-by: NJoe Perches <joe@perches.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 589be650
...@@ -1646,8 +1646,7 @@ static int sf_setstate(struct ip_mc_list *pmc) ...@@ -1646,8 +1646,7 @@ static int sf_setstate(struct ip_mc_list *pmc)
if (dpsf->sf_inaddr == psf->sf_inaddr) if (dpsf->sf_inaddr == psf->sf_inaddr)
break; break;
if (!dpsf) { if (!dpsf) {
dpsf = (struct ip_sf_list *) dpsf = kmalloc(sizeof(*dpsf), GFP_ATOMIC);
kmalloc(sizeof(*dpsf), GFP_ATOMIC);
if (!dpsf) if (!dpsf)
continue; continue;
*dpsf = *psf; *dpsf = *psf;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册