提交 4087d2bc 编写于 作者: Z Zhu Yanjun 提交者: David S. Miller

net: rds: remove unnecessary NULL check

In kfree, the NULL check is done.
Signed-off-by: NZhu Yanjun <yanjun.zhu@oracle.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 2b965472
...@@ -623,7 +623,7 @@ static void __net_exit rds_tcp_exit_net(struct net *net) ...@@ -623,7 +623,7 @@ static void __net_exit rds_tcp_exit_net(struct net *net)
if (rtn->rds_tcp_sysctl) if (rtn->rds_tcp_sysctl)
unregister_net_sysctl_table(rtn->rds_tcp_sysctl); unregister_net_sysctl_table(rtn->rds_tcp_sysctl);
if (net != &init_net && rtn->ctl_table) if (net != &init_net)
kfree(rtn->ctl_table); kfree(rtn->ctl_table);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册