forked from mirrors/linux
net: rds: remove unnecessary NULL check
In kfree, the NULL check is done. Signed-off-by: Zhu Yanjun <yanjun.zhu@oracle.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
2b96547223
commit
4087d2bc0d
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue