Skip to content

Commit 4087d2b

Browse files
Zhu Yanjundavem330
authored andcommitted
net: rds: remove unnecessary NULL check
In kfree, the NULL check is done. Signed-off-by: Zhu Yanjun <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 2b96547 commit 4087d2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/rds/tcp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -623,7 +623,7 @@ static void __net_exit rds_tcp_exit_net(struct net *net)
623623
if (rtn->rds_tcp_sysctl)
624624
unregister_net_sysctl_table(rtn->rds_tcp_sysctl);
625625

626-
if (net != &init_net && rtn->ctl_table)
626+
if (net != &init_net)
627627
kfree(rtn->ctl_table);
628628
}
629629

0 commit comments

Comments
 (0)