Commit 52333512 authored by Yufeng Mo's avatar Yufeng Mo Committed by David S. Miller
Browse files

net: bonding: remove unnecessary braces



Braces {} are not necessary for single statement blocks,
so remove these braces {}.

Signed-off-by: default avatarYufeng Mo <moyufeng@huawei.com>
Signed-off-by: default avatarGuangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 8ce390bb
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -88,10 +88,9 @@ void bond_create_debugfs(void)
{
	bonding_debug_root = debugfs_create_dir("bonding", NULL);

	if (!bonding_debug_root) {
	if (!bonding_debug_root)
		pr_warn("Warning: Cannot create bonding directory in debugfs\n");
}
}

void bond_destroy_debugfs(void)
{
+1 −2
Original line number Diff line number Diff line
@@ -1013,11 +1013,10 @@ void bond_change_active_slave(struct bonding *bond, struct slave *new_active)
			if (bond_is_lb(bond))
				bond_alb_handle_link_change(bond, new_active, BOND_LINK_UP);
		} else {
			if (bond_uses_primary(bond)) {
			if (bond_uses_primary(bond))
				slave_info(bond->dev, new_active->dev, "making interface the new active one\n");
		}
	}
	}

	if (bond_uses_primary(bond))
		bond_hw_addr_swap(bond, new_active, old_active);