bnx2x: fix logical op
Fix dubious logical operation that was found by sparse: linux-next-20080807/drivers/net/bnx2x_main.c:7205:27: warning: dubious: !x & y Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
c1c6c11a68
commit
4ab84d450e
1 changed files with 1 additions and 1 deletions
|
@ -7202,7 +7202,7 @@ static void __devinit bnx2x_link_settings_requested(struct bnx2x *bp)
|
|||
bp->link_params.req_flow_ctrl = (bp->port.link_config &
|
||||
PORT_FEATURE_FLOW_CONTROL_MASK);
|
||||
if ((bp->link_params.req_flow_ctrl == FLOW_CTRL_AUTO) &&
|
||||
(!bp->port.supported & SUPPORTED_Autoneg))
|
||||
!(bp->port.supported & SUPPORTED_Autoneg))
|
||||
bp->link_params.req_flow_ctrl = FLOW_CTRL_NONE;
|
||||
|
||||
BNX2X_DEV_INFO("req_line_speed %d req_duplex %d req_flow_ctrl 0x%x"
|
||||
|
|
Loading…
Reference in a new issue