summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2001-04-04 06:05:46 +0000
committerimp <imp@FreeBSD.org>2001-04-04 06:05:46 +0000
commit8a4b53d45bc15883934927a29aa867ec6b6ca90f (patch)
treebe3b43d231bdfba8869542f43dbf818cf812065f
parent6f21113f7dc090863707b4d92b930cde939fe67b (diff)
downloadFreeBSD-src-8a4b53d45bc15883934927a29aa867ec6b6ca90f.zip
FreeBSD-src-8a4b53d45bc15883934927a29aa867ec6b6ca90f.tar.gz
Doh! Last second change introduced two compile warnings. Fix them.
-rw-r--r--sys/dev/wi/if_wi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/wi/if_wi.c b/sys/dev/wi/if_wi.c
index e7f16ce..b7b5dab 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)
OpenPOWER on IntegriCloud