Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pci/ixgbe CID 141398: Fix incorrect test



details:   https://anonhg.NetBSD.org/src/rev/2e240470910a
branches:  trunk
changeset: 328759:2e240470910a
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Apr 17 15:33:40 2014 +0000

description:
CID 141398: Fix incorrect test

diffstat:

 sys/dev/pci/ixgbe/ixgbe_common.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r e952e935b126 -r 2e240470910a sys/dev/pci/ixgbe/ixgbe_common.c
--- a/sys/dev/pci/ixgbe/ixgbe_common.c  Thu Apr 17 13:48:02 2014 +0000
+++ b/sys/dev/pci/ixgbe/ixgbe_common.c  Thu Apr 17 15:33:40 2014 +0000
@@ -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 @@
 
        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;
        }



Home | Main Index | Thread Index | Old Index