Commit f5370ba3 authored by Zhengchao Shao's avatar Zhengchao Shao Committed by David S. Miller
Browse files

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: default avatarZhengchao Shao <shaozhengchao@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent a8f3f4b4
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -5863,7 +5863,6 @@ static void bond_destructor(struct net_device *bond_dev)
	if (bond->wq)
		destroy_workqueue(bond->wq);

	if (bond->rr_tx_counter)
	free_percpu(bond->rr_tx_counter);
}