diff options
author | Warner Losh <imp@FreeBSD.org> | 2001-04-04 06:05:46 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 2001-04-04 06:05:46 +0000 |
commit | 5ea63116b8ba6f782050548a84bc488e03b36d82 (patch) | |
tree | 37f5ed1efd0c4fc5d658cceaccdb71a873fd4394 /sys/dev/wi/if_wi.c | |
parent | 840709e7093f7259e5fc74f89b9e1319f707b068 (diff) | |
download | src-5ea63116b8ba6f782050548a84bc488e03b36d82.tar.gz src-5ea63116b8ba6f782050548a84bc488e03b36d82.zip |
Doh! Last second change introduced two compile warnings. Fix them.
Notes
Notes:
svn path=/head/; revision=75150
Diffstat (limited to 'sys/dev/wi/if_wi.c')
-rw-r--r-- | sys/dev/wi/if_wi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/wi/if_wi.c b/sys/dev/wi/if_wi.c index e7f16ce98b3c..b7b5dab523d6 100644 --- a/sys/dev/wi/if_wi.c +++ b/sys/dev/wi/if_wi.c @@ -429,7 +429,7 @@ wi_generic_attach(device_t dev) /* Read the station address. */ mac.wi_type = WI_RID_MAC_NODE; mac.wi_len = 4; - if (error = wi_read_record(sc, (struct wi_ltv_gen *)&mac)) { + if ((error = wi_read_record(sc, (struct wi_ltv_gen *)&mac)) != 0) { device_printf(dev, "mac read failed %d\n", error); wi_free(dev); return (error); @@ -815,7 +815,7 @@ static int wi_cmd(sc, cmd, val) static void wi_reset(sc) struct wi_softc *sc; { - int i, err; + int i; for (i = 0; i < 5; i++) { if (wi_cmd(sc, WI_CMD_INI, 0) == 0) |