pcn(4): Fix a bug where && was meant but & was used.
authorSascha Wildner <saw@online.de>
Fri, 16 Dec 2011 13:50:23 +0000 (14:50 +0100)
committerSascha Wildner <saw@online.de>
Fri, 16 Dec 2011 13:50:23 +0000 (14:50 +0100)
sys/dev/netif/pcn/if_pcn.c

index 126c9b2..b1c8e40 100644 (file)
@@ -882,7 +882,7 @@ pcn_tick(void *xsc)
        mii = device_get_softc(sc->pcn_miibus);
        mii_tick(mii);
 
-       if (sc->pcn_link & !(mii->mii_media_status & IFM_ACTIVE))
+       if (sc->pcn_link && !(mii->mii_media_status & IFM_ACTIVE))
                sc->pcn_link = 0;
 
        if (!sc->pcn_link) {