]> git.baikalelectronics.ru Git - kernel.git/commit
net-bonding: Fix minor/cosmetic type inconsistencies
authorDavid Decotigny <decot@google.com>
Wed, 13 Apr 2011 15:22:30 +0000 (15:22 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 Apr 2011 05:00:32 +0000 (22:00 -0700)
commit6bf718e0ae7ec796b70df5e364a789c010c3eb17
treedf3f51653b8dccced401c902d8566f068c735cfc
parent8bff3d7c6ac7642177e513b539343aae47923d09
net-bonding: Fix minor/cosmetic type inconsistencies

The __get_link_speed() function returns a u16 value which was stored
in a u32 local variable. This patch uses the return value directly,
thus fixing that minor type consistency.

The 'duplex' field in struct slave being encoded on 8 bits, to be more
consistent we use a u8 integer (instead of u16) whenever we copy it to
local variables.

Signed-off-by: David Decotigny <decot@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_3ad.c
drivers/net/bonding/bond_main.c