[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20080807135314.8d87e1a2.randy.dunlap@oracle.com>
Date: Thu, 7 Aug 2008 13:53:14 -0700
From: Randy Dunlap <randy.dunlap@...cle.com>
To: netdev <netdev@...r.kernel.org>
Cc: jgarzik <jgarzik@...ox.com>, eilong@...adcom.com,
akpm <akpm@...ux-foundation.org>
Subject: [PATCH -next] bnx2x: fix logical op
From: Randy Dunlap <randy.dunlap@...cle.com>
cc: eilong@...adcom.com
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@...cle.com>
---
drivers/net/bnx2x_main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- linux-next-20080807.orig/drivers/net/bnx2x_main.c
+++ linux-next-20080807/drivers/net/bnx2x_main.c
@@ -7202,7 +7202,7 @@ static void __devinit bnx2x_link_setting
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"
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists