bonding: comparing a u8 with -1 is always false
commit589665f5a6008dbce1d0af2cb93e94a80bf78151
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 4 Nov 2011 08:21:38 +0000 (4 08:21 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 4 Nov 2011 22:37:23 +0000 (4 18:37 -0400)
tree4f4ec1949dd233a8474c2cb477da3637166b6e75
parent27d240fdae2808d727ad9ce48ec029731a457524
bonding: comparing a u8 with -1 is always false

slave->duplex is a u8 type so the in bond_info_show_slave() when we
check "if (slave->duplex == -1)", it's always false.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_main.c
drivers/net/bonding/bond_procfs.c
include/linux/ethtool.h