]> git.baikalelectronics.ru Git - kernel.git/commit
bonding: comparing a u8 with -1 is always false
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 4 Nov 2011 08:21:38 +0000 (08:21 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 4 Nov 2011 22:37:23 +0000 (18:37 -0400)
commit25b9ab058be7bf611ba6f8c17eb282fab47cd176
tree4f4ec1949dd233a8474c2cb477da3637166b6e75
parent99e4f97d604b45923a57f46c84306c60718c42bb
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