Module Name:    src
Committed By:   christos
Date:           Thu Apr 17 15:33:40 UTC 2014

Modified Files:
        src/sys/dev/pci/ixgbe: ixgbe_common.c

Log Message:
CID 141398: Fix incorrect test


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/dev/pci/ixgbe/ixgbe_common.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/pci/ixgbe/ixgbe_common.c
diff -u src/sys/dev/pci/ixgbe/ixgbe_common.c:1.1 src/sys/dev/pci/ixgbe/ixgbe_common.c:1.2
--- src/sys/dev/pci/ixgbe/ixgbe_common.c:1.1	Fri Aug 12 17:55:29 2011
+++ src/sys/dev/pci/ixgbe/ixgbe_common.c	Thu Apr 17 11:33:40 2014
@@ -31,7 +31,7 @@
 
 ******************************************************************************/
 /*$FreeBSD: src/sys/dev/ixgbe/ixgbe_common.c,v 1.12 2011/01/19 19:36:27 jfv Exp $*/
-/*$NetBSD: ixgbe_common.c,v 1.1 2011/08/12 21:55:29 dyoung Exp $*/
+/*$NetBSD: ixgbe_common.c,v 1.2 2014/04/17 15:33:40 christos Exp $*/
 
 #include "ixgbe_common.h"
 #include "ixgbe_phy.h"
@@ -2181,7 +2181,7 @@ static s32 ixgbe_fc_autoneg_fiber(struct
 
 	linkstat = IXGBE_READ_REG(hw, IXGBE_PCS1GLSTA);
 	if (((linkstat & IXGBE_PCS1GLSTA_AN_COMPLETE) == 0) ||
-	    ((linkstat & IXGBE_PCS1GLSTA_AN_TIMED_OUT) == 1)) {
+	    ((linkstat & IXGBE_PCS1GLSTA_AN_TIMED_OUT) != 0)) {
 		ret_val = IXGBE_ERR_FC_NOT_NEGOTIATED;
 		goto out;
 	}

Reply via email to