summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2004-07-16 23:07:38 +0000
committerimp <imp@FreeBSD.org>2004-07-16 23:07:38 +0000
commit77a331dc4e06da4da45fc5e64286096fa0a84e6f (patch)
treea307c74870c990c6f689e64fece5455f4db5512d /sys
parent8b8f22c839c9af8d37c6b2dd362183dd1ec6bbcb (diff)
downloadFreeBSD-src-77a331dc4e06da4da45fc5e64286096fa0a84e6f.zip
FreeBSD-src-77a331dc4e06da4da45fc5e64286096fa0a84e6f.tar.gz
Be consistant with probe
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/fdc/fdc_isa.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/fdc/fdc_isa.c b/sys/dev/fdc/fdc_isa.c
index a1a6dd3..6e2f820 100644
--- a/sys/dev/fdc/fdc_isa.c
+++ b/sys/dev/fdc/fdc_isa.c
@@ -247,8 +247,7 @@ fdc_isa_attach(device_t dev)
if (error == 0)
fdc->flags |= FDC_ISPNP;
if (fd_cmd(fdc, 1, NE7CMD_VERSION, 1, &ic_type) == 0) {
- ic_type = (u_char)ic_type;
- switch (ic_type) {
+ switch (ic_type & 0xff) {
case 0x80:
fdc->fdct = FDC_NE765;
break;
OpenPOWER on IntegriCloud