Skip to content
Commit 589665f5 authored by Dan Carpenter's avatar Dan Carpenter Committed by David S. Miller
Browse files

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: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 27d240fd
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment