Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit be7faf71 authored by wangweidong's avatar wangweidong Committed by David S. Miller
Browse files

rds: remove the unneed NULL checking



unregister_net_sysctl_table will check the ctl_table_header,
so remove the unneed checking

Signed-off-by: default avatarWang Weidong <wangweidong1@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 97e72829
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -111,7 +111,6 @@ 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);
}

+1 −2
Original line number Diff line number Diff line
@@ -94,7 +94,6 @@ 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);
}