bonding: remove unnecessary NULL check in bond_destructor
authorZhengchao Shao <shaozhengchao@huawei.com>
Thu, 10 Aug 2023 13:50:07 +0000 (21:50 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 11 Aug 2023 10:10:55 +0000 (11:10 +0100)
commitf5370ba3590d1e141c288eed2c0e53618b91356d
tree5f66090e140d984d8f22e1be84dfe67aeaa92095
parenta8f3f4b448458a117465b9404d18994469c01957
bonding: remove unnecessary NULL check in bond_destructor

The free_percpu function also could check whether "rr_tx_counter"
parameter is NULL. Therefore, remove NULL check in bond_destructor.

Signed-off-by: Zhengchao Shao <shaozhengchao@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_main.c