diff options
author | Yufeng Mo <moyufeng@huawei.com> | 2021-05-20 14:18:34 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-05-20 15:43:24 -0700 |
commit | 52333512701b56464a42f79b82570b37e7b91164 (patch) | |
tree | f5d241db63038ccbc0b6ff420b339b4fb8b8823d /drivers/net/bonding/bond_main.c | |
parent | 8ce390bb985939a3bbc9a3616fa4fd046b54333b (diff) | |
download | linux-52333512701b56464a42f79b82570b37e7b91164.tar.bz2 |
net: bonding: remove unnecessary braces
Braces {} are not necessary for single statement blocks,
so remove these braces {}.
Signed-off-by: Yufeng Mo <moyufeng@huawei.com>
Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bonding/bond_main.c')
-rw-r--r-- | drivers/net/bonding/bond_main.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c index e786a9c42bfd..dafeaef3cbd3 100644 --- a/drivers/net/bonding/bond_main.c +++ b/drivers/net/bonding/bond_main.c @@ -1013,9 +1013,8 @@ 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"); - } } } |