rds: remove the unneed NULL checking
Subsystems (3)
PATCH 1/1 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 <[email protected]>
--- net/rds/iw_sysctl.c | 3 +-- net/rds/sysctl.c | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-)
net/rds/iw_sysctl.c +1 -2
@@ -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 )
net/rds/sysctl.c +1 -2
@@ -94,8 +94,7 @@ static struct ctl_table rds_sysctl_rds_table[] = {void rds_sysctl_exit (void ) { -if (rds_sysctl_reg_table) -unregister_net_sysctl_table (rds_sysctl_reg_table); +unregister_net_sysctl_table (rds_sysctl_reg_table); }int rds_sysctl_init (void )
Signature · 1 line
1.7.12
From: Wang Weidong <[email protected]>
Date: Thu, 8 May 2014 17:01:53 +0800
Quoted 4 lines
unregister_net_sysctl_tablewill check thectl_table_header, so remove the unneed checkingSigned-off-by Wang Weidong <[email protected]>
Applied, thanks.