diff options
author | bde <bde@FreeBSD.org> | 2003-08-06 18:06:30 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 2003-08-06 18:06:30 +0000 |
commit | 7881c7578fc2cf286f6d3cdf221522d94fc745d8 (patch) | |
tree | cf82cc95c7e4ba701c0bc100813773a30c27e3c3 /sys/dev/ed | |
parent | 611693fd8cb6877d982292bab8e517e8cf345882 (diff) | |
download | FreeBSD-src-7881c7578fc2cf286f6d3cdf221522d94fc745d8.zip FreeBSD-src-7881c7578fc2cf286f6d3cdf221522d94fc745d8.tar.gz |
Don't use pessimal (u_short) types for i/o ports. This is mainly for
completenss. The pessimization is tiny compared with i/o port slowness
except on very old machines, but code that used signed short types for
i/o ports was unpessimized long ago, and the macro that detected it
recently started working for u_short types too. Use of bus space
should have made this moot long ago.
Not tested at runtime by: bde
Diffstat (limited to 'sys/dev/ed')
-rw-r--r-- | sys/dev/ed/if_ed_cbus.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/ed/if_ed_cbus.c b/sys/dev/ed/if_ed_cbus.c index 9676bcb..4a3c651 100644 --- a/sys/dev/ed/if_ed_cbus.c +++ b/sys/dev/ed/if_ed_cbus.c @@ -975,7 +975,7 @@ ed_reset_CNET98(sc, flags) struct ed_softc *sc; int flags; { - u_short init_addr = ED_CNET98_INIT; + u_int init_addr = ED_CNET98_INIT; u_char tmp; /* Choose initial register address */ |