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/1b86ebecb9b9
branches:  trunk
changeset: 795520:1b86ebecb9b9
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 a9fd996afd99 -r 1b86ebecb9b9 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