projects
/
dragonfly.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
ee1e3d3
)
pcn(4): Fix a bug where && was meant but & was used.
author
Sascha Wildner <saw@online.de>
Fri, 16 Dec 2011 13:50:23 +0000 (14:50 +0100)
committer
Sascha Wildner <saw@online.de>
Fri, 16 Dec 2011 13:50:23 +0000 (14:50 +0100)
sys/dev/netif/pcn/if_pcn.c
patch
|
blob
|
blame
|
history
diff --git
a/sys/dev/netif/pcn/if_pcn.c
b/sys/dev/netif/pcn/if_pcn.c
index
126c9b2
..
b1c8e40
100644
(file)
--- a/
sys/dev/netif/pcn/if_pcn.c
+++ b/
sys/dev/netif/pcn/if_pcn.c
@@
-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) {