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 <dingtianhong@huawei.com> Cc: Jay Vosburgh <fubar@us.ibm.com> Cc: Andy Gospodarek <andy@greyhouse.net> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
c4cdef9b71
commit
38c4916a78
@@ -1295,8 +1295,7 @@ static ssize_t bonding_store_active_slave(struct device *d,
|
|||||||
bond->dev->name,
|
bond->dev->name,
|
||||||
slave->dev->name);
|
slave->dev->name);
|
||||||
goto out;
|
goto out;
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
if ((new_active) &&
|
if ((new_active) &&
|
||||||
(old_active) &&
|
(old_active) &&
|
||||||
(new_active->link == BOND_LINK_UP) &&
|
(new_active->link == BOND_LINK_UP) &&
|
||||||
@@ -1307,8 +1306,7 @@ static ssize_t bonding_store_active_slave(struct device *d,
|
|||||||
slave->dev->name);
|
slave->dev->name);
|
||||||
bond_change_active_slave(bond,
|
bond_change_active_slave(bond,
|
||||||
new_active);
|
new_active);
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
pr_info("%s: Could not set %s as"
|
pr_info("%s: Could not set %s as"
|
||||||
" active slave; either %s is"
|
" active slave; either %s is"
|
||||||
" down or the link is down.\n",
|
" down or the link is down.\n",
|
||||||
|
Reference in New Issue
Block a user