net: bonding: remove unnecessary braces
authorYufeng Mo <moyufeng@huawei.com>
Thu, 20 May 2021 06:18:34 +0000 (14:18 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 20 May 2021 22:43:24 +0000 (15:43 -0700)
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>
drivers/net/bonding/bond_debugfs.c
drivers/net/bonding/bond_main.c

index f3f86ef68ae0ce9c126d2e66108e6124a7190e01..4f9b4a18c74cdc767298ad4b2c17fdab17333151 100644 (file)
@@ -88,9 +88,8 @@ 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)
index e786a9c42bfd754a77951914616874d50e7fd60b..dafeaef3cbd37d39d9754ba3de9cdeeaf0c1ce92 100644 (file)
@@ -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");
-                       }
                }
        }