Commit 4087d2bc0d9469835f8d19d63a4a56739e5b8c5b

Authored by Zhu Yanjun
Committed by David S. Miller
1 parent 2b96547223

net: rds: remove unnecessary NULL check

In kfree, the NULL check is done.

Signed-off-by: Zhu Yanjun <yanjun.zhu@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -623,7 +623,7 @@
623 623 if (rtn->rds_tcp_sysctl)
624 624 unregister_net_sysctl_table(rtn->rds_tcp_sysctl);
625 625  
626   - if (net != &init_net && rtn->ctl_table)
  626 + if (net != &init_net)
627 627 kfree(rtn->ctl_table);
628 628 }
629 629