summaryrefslogtreecommitdiffstats
path: root/net/rds/iw_sysctl.c
diff options
context:
space:
mode:
authorwangweidong <wangweidong1@huawei.com>2014-05-08 17:01:53 +0800
committerDavid S. Miller <davem@davemloft.net>2014-05-09 15:59:45 -0400
commitbe7faf7168e831f17b85a96f2f797f504b66cfd7 (patch)
treef59772f98da91e16eefef3437ffce4e327293cf6 /net/rds/iw_sysctl.c
parent97e72829d7c0efc9fe7768148ef490bc83ebce0e (diff)
downloadop-kernel-dev-be7faf7168e831f17b85a96f2f797f504b66cfd7.zip
op-kernel-dev-be7faf7168e831f17b85a96f2f797f504b66cfd7.tar.gz
rds: remove the unneed NULL checking
unregister_net_sysctl_table will check the ctl_table_header, so remove the unneed checking Signed-off-by: Wang Weidong <wangweidong1@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/rds/iw_sysctl.c')
-rw-r--r--net/rds/iw_sysctl.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/net/rds/iw_sysctl.c b/net/rds/iw_sysctl.c
index 89c9151..139239d 100644
--- a/net/rds/iw_sysctl.c
+++ b/net/rds/iw_sysctl.c
@@ -111,8 +111,7 @@ static struct ctl_table rds_iw_sysctl_table[] = {
void rds_iw_sysctl_exit(void)
{
- if (rds_iw_sysctl_hdr)
- unregister_net_sysctl_table(rds_iw_sysctl_hdr);
+ unregister_net_sysctl_table(rds_iw_sysctl_hdr);
}
int rds_iw_sysctl_init(void)
OpenPOWER on IntegriCloud