summaryrefslogtreecommitdiff
path: root/net/rds
diff options
context:
space:
mode:
authorZhu Yanjun <yanjun.zhu@oracle.com>2018-12-30 23:24:11 +0800
committerDavid S. Miller <davem@davemloft.net>2019-01-01 09:54:19 -0800
commit4087d2bc0d9469835f8d19d63a4a56739e5b8c5b (patch)
tree4352b66999a4511bc059b815a8d797fccfef9968 /net/rds
parent2b96547223e3a036efb51733dbf37a1e4be92068 (diff)
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>
Diffstat (limited to 'net/rds')
-rw-r--r--net/rds/tcp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/rds/tcp.c b/net/rds/tcp.c
index b9bbcf3d6c63..c16f0a362c32 100644
--- a/net/rds/tcp.c
+++ b/net/rds/tcp.c
@@ -623,7 +623,7 @@ static void __net_exit rds_tcp_exit_net(struct net *net)
if (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);
}