bonding: bond_sysfs.c checkpatch cleanup
Subsystems (3)
PATCH v2 4/4 bonding: bond_sysfs.c checkpatch cleanup
net/bonding/bond_sysfs.c:1302: ERROR: else should follow close brace '}' net/bonding/bond_sysfs.c:1314: ERROR: else should follow close brace '}'
Signed-off-by Ding Tianhong <[email protected]>
Cc Jay Vosburgh <[email protected]>
Cc Andy Gospodarek <[email protected]>
--- drivers/net/bonding/bond_sysfs.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
drivers/net/bonding/bond_sysfs.c +2 -4
@@ -1302,8 +1302,7 @@ static ssize_t bonding_store_active_slave(struct device *d, bond->dev->name, slave->dev->name); goto out; - } -else { + }else { if ((new_active) && (old_active) && (new_active->link == BOND_LINK_UP) &&
@@ -1314,8 +1313,7 @@ static ssize_t bonding_store_active_slave(struct device *d, slave->dev->name);bond_change_active_slave (bond, new_active); - } -else { + }else { pr_info("%s: Could not set %s as" " active slave; either %s is" " down or the link is down.\n",
Signature · 1 line
1.8.0
From: Ding Tianhong <[email protected]>
Date: Tue, 23 Jul 2013 15:25:32 +0800
Quoted 4 lines
net/bonding/bond_sysfs.c:1302: ERROR: else should follow close brace '}'net/bonding/bond_sysfs.c:1314: ERROR: else should follow close brace '}'Signed-off-by Ding Tianhong <[email protected]>
Applied.