From 80e239687578f723ebb9a678d7b22cc5eb3b7f43 Mon Sep 17 00:00:00 2001 From: jsg Date: Tue, 3 Aug 2010 16:11:57 +0000 Subject: [PATCH] Correct use of logical and where binary and was intended. Spotted by lint, but mirrors a similiar change in the original FreeBSD code from over a year ago. ok deraadt@ --- sys/dev/pci/if_bnx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/pci/if_bnx.c b/sys/dev/pci/if_bnx.c index e87f892e282..8ff6db84058 100644 --- a/sys/dev/pci/if_bnx.c +++ b/sys/dev/pci/if_bnx.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_bnx.c,v 1.88 2010/05/24 21:23:23 sthen Exp $ */ +/* $OpenBSD: if_bnx.c,v 1.89 2010/08/03 16:11:57 jsg Exp $ */ /*- * Copyright (c) 2006 Broadcom Corporation @@ -2227,7 +2227,7 @@ bnx_get_media(struct bnx_softc *sc) } 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) { sc->bnx_flags |= BNX_NO_WOL_FLAG; if (BNX_CHIP_NUM(sc) == BNX_CHIP_NUM_5709) -- 2.20.1