diff options
author | Damien Bergamini <damien@cvs.openbsd.org> | 2010-02-10 21:46:57 +0000 |
---|---|---|
committer | Damien Bergamini <damien@cvs.openbsd.org> | 2010-02-10 21:46:57 +0000 |
commit | 0b25601cd2e79cf9432b246b31adaf9d660ae73a (patch) | |
tree | 5dfba62ed70766e3d2c0541114bd10e5904f86d1 /sys/dev/usb/if_run.c | |
parent | 92b41eb4aa3268d4f0baa87d2eabc673297576e5 (diff) |
check that rf reg is != 0xff, not rf val.
Diffstat (limited to 'sys/dev/usb/if_run.c')
-rw-r--r-- | sys/dev/usb/if_run.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/if_run.c b/sys/dev/usb/if_run.c index fb7185eeb0b..af2e5ea41a4 100644 --- a/sys/dev/usb/if_run.c +++ b/sys/dev/usb/if_run.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_run.c,v 1.56 2010/02/08 20:21:35 damien Exp $ */ +/* $OpenBSD: if_run.c,v 1.57 2010/02/10 21:46:56 damien Exp $ */ /*- * Copyright (c) 2008-2010 Damien Bergamini <damien.bergamini@free.fr> @@ -3168,7 +3168,7 @@ run_rt3070_rf_setup(struct run_softc *sc) /* initialize RF registers from ROM for >=RT3071*/ if (sc->mac_ver >= 0x3071) { for (i = 0; i < 10; i++) { - if (sc->rf[i].reg == 0 || sc->rf[i].val == 0xff) + if (sc->rf[i].reg == 0 || sc->rf[i].reg == 0xff) continue; run_rt3070_rf_write(sc, sc->rf[i].reg, sc->rf[i].val); } |