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>
Šī revīzija ir iekļauta:
David Decotigny
2011-04-13 15:22:30 +00:00
revīziju iesūtīja David S. Miller
vecāks d30ee670f2
revīzija 65cce19c07
2 mainīti faili ar 2 papildinājumiem un 4 dzēšanām

Parādīt failu

@@ -3340,7 +3340,7 @@ static int bond_slave_netdev_event(unsigned long event,
slave = bond_get_slave_by_dev(bond, slave_dev);
if (slave) {
u16 old_speed = slave->speed;
u16 old_duplex = slave->duplex;
u8 old_duplex = slave->duplex;
bond_update_speed_duplex(slave);