aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/bonding/bond_3ad.c
diff options
context:
space:
mode:
authorNikolay Aleksandrov <nikolay@redhat.com>2014-09-15 11:19:34 -0400
committerDavid S. Miller <davem@davemloft.net>2014-09-15 17:19:49 -0400
commit547942cace50e536dcda9ce8397792bc992291d6 (patch)
treebf6f6d59aee34e92b3b00fd6d1e4c5e49f5a964f /drivers/net/bonding/bond_3ad.c
parent56924c3811ae843527f7a1090ead73a0acf704a4 (diff)
bonding: trivial: style and comment fixes
First adjust a couple of locking comments that were left inaccurate, then adjust comments to use the netdev styling and remove extra new lines where necessary and add a couple of new lines between declarations and code. These are all trivial styling changes, no functional change. Also removed a couple of outdated or obvious comments. This patch is by no means a complete fix of all netdev style violations but it gets the bonding closer. Signed-off-by: Nikolay Aleksandrov <nikolay@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bonding/bond_3ad.c')
-rw-r--r--drivers/net/bonding/bond_3ad.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/net/bonding/bond_3ad.c b/drivers/net/bonding/bond_3ad.c
index 2bb360f32a64..7e9e522fd476 100644
--- a/drivers/net/bonding/bond_3ad.c
+++ b/drivers/net/bonding/bond_3ad.c
@@ -297,15 +297,14 @@ static u16 __get_link_speed(struct port *port)
297static u8 __get_duplex(struct port *port) 297static u8 __get_duplex(struct port *port)
298{ 298{
299 struct slave *slave = port->slave; 299 struct slave *slave = port->slave;
300
301 u8 retval; 300 u8 retval;
302 301
303 /* handling a special case: when the configuration starts with 302 /* handling a special case: when the configuration starts with
304 * link down, it sets the duplex to 0. 303 * link down, it sets the duplex to 0.
305 */ 304 */
306 if (slave->link != BOND_LINK_UP) 305 if (slave->link != BOND_LINK_UP) {
307 retval = 0x0; 306 retval = 0x0;
308 else { 307 } else {
309 switch (slave->duplex) { 308 switch (slave->duplex) {
310 case DUPLEX_FULL: 309 case DUPLEX_FULL:
311 retval = 0x1; 310 retval = 0x1;