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

Commit 4087d2bc authored by Zhu Yanjun's avatar Zhu Yanjun Committed by David S. Miller
Browse files

net: rds: remove unnecessary NULL check



In kfree, the NULL check is done.

Signed-off-by: default avatarZhu Yanjun <yanjun.zhu@oracle.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 2b965472
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);
}