Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci Don't test flags with &&. From Henning Petersen ...



details:   https://anonhg.NetBSD.org/src/rev/49be9699b836
branches:  trunk
changeset: 759055:49be9699b836
user:      dholland <dholland%NetBSD.org@localhost>
date:      Fri Nov 26 21:59:49 2010 +0000

description:
Don't test flags with &&. From Henning Petersen in PR 44151.

diffstat:

 sys/dev/pci/if_bnx.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 7cad190d5ab2 -r 49be9699b836 sys/dev/pci/if_bnx.c
--- a/sys/dev/pci/if_bnx.c      Fri Nov 26 18:58:43 2010 +0000
+++ b/sys/dev/pci/if_bnx.c      Fri Nov 26 21:59:49 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_bnx.c,v 1.33 2010/04/05 07:20:25 joerg Exp $        */
+/*     $NetBSD: if_bnx.c,v 1.34 2010/11/26 21:59:49 dholland Exp $     */
 /*     $OpenBSD: if_bnx.c,v 1.85 2009/11/09 14:32:41 dlg Exp $ */
 
 /*-
@@ -35,7 +35,7 @@
 #if 0
 __FBSDID("$FreeBSD: src/sys/dev/bce/if_bce.c,v 1.3 2006/04/13 14:12:26 ru Exp $");
 #endif
-__KERNEL_RCSID(0, "$NetBSD: if_bnx.c,v 1.33 2010/04/05 07:20:25 joerg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_bnx.c,v 1.34 2010/11/26 21:59:49 dholland Exp $");
 
 /*
  * The following controllers are supported by this driver:
@@ -1996,7 +1996,7 @@
        } else if (BNX_CHIP_BOND_ID(sc) & BNX_CHIP_BOND_ID_SERDES_BIT)
                sc->bnx_phy_flags |= BNX_PHY_SERDES_FLAG;
 
-       if (sc->bnx_phy_flags && BNX_PHY_SERDES_FLAG) {
+       if (sc->bnx_phy_flags & BNX_PHY_SERDES_FLAG) {
                u_int32_t val;
  
                sc->bnx_flags |= BNX_NO_WOL_FLAG;



Home | Main Index | Thread Index | Old Index