diff options
author | Dale Rahn <drahn@cvs.openbsd.org> | 2001-06-25 19:33:10 +0000 |
---|---|---|
committer | Dale Rahn <drahn@cvs.openbsd.org> | 2001-06-25 19:33:10 +0000 |
commit | 0d32d10532be4c84f529b7be64ca6fec1ed314c2 (patch) | |
tree | db304436f667544440378f2b791ab2f871ebdff7 /sys/dev/ic/if_wi.c | |
parent | 77e87723020b104b423272e0be34b82c69193444 (diff) |
remove unused variable.
Cleanup as suggested by millert@
Diffstat (limited to 'sys/dev/ic/if_wi.c')
-rw-r--r-- | sys/dev/ic/if_wi.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/sys/dev/ic/if_wi.c b/sys/dev/ic/if_wi.c index bcc84f5d00e..5803b01e372 100644 --- a/sys/dev/ic/if_wi.c +++ b/sys/dev/ic/if_wi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_wi.c,v 1.12 2001/06/25 18:04:22 drahn Exp $ */ +/* $OpenBSD: if_wi.c,v 1.13 2001/06/25 19:33:09 drahn Exp $ */ /* * Copyright (c) 1997, 1998, 1999 @@ -120,7 +120,7 @@ u_int32_t widebug = WIDEBUG; #if !defined(lint) && !defined(__OpenBSD__) static const char rcsid[] = - "$OpenBSD: if_wi.c,v 1.12 2001/06/25 18:04:22 drahn Exp $"; + "$OpenBSD: if_wi.c,v 1.13 2001/06/25 19:33:09 drahn Exp $"; #endif /* lint */ #ifdef foo @@ -642,9 +642,8 @@ wi_read_record(sc, ltv) /* Now read the data. */ ptr = (u_int8_t *)<v->wi_val; - if (ltv->wi_len > 1) { + if (ltv->wi_len > 1) CSR_READ_RAW_2(sc, WI_DATA1, ptr, (ltv->wi_len-1)*2); - } if (sc->sc_prism2) { int v; @@ -697,7 +696,6 @@ wi_write_record(sc, ltv) struct wi_ltv_gen *ltv; { u_int8_t *ptr; - int i; struct wi_ltv_gen p2ltv; if (sc->sc_prism2) { @@ -771,9 +769,8 @@ wi_write_record(sc, ltv) CSR_WRITE_2(sc, WI_DATA1, ltv->wi_type); ptr = (u_int8_t *)<v->wi_val; - if (ltv->wi_len > 1) { + if (ltv->wi_len > 1) CSR_WRITE_RAW_2(sc, WI_DATA1, ptr, (ltv->wi_len-1) *2); - } if (wi_cmd(sc, WI_CMD_ACCESS|WI_ACCESS_WRITE, ltv->wi_type)) return(EIO); |