From 90c5668bcae3ba2ed30df209d7ac2c3403589994 Mon Sep 17 00:00:00 2001 From: Nick Hibma Date: Sun, 14 May 2000 17:25:33 +0000 Subject: [PATCH] Make some if's cleaner. Add a define for the Zip 250. --- sys/dev/usb/umass.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sys/dev/usb/umass.c b/sys/dev/usb/umass.c index 0fbf2a51d94d..2bee2ab831eb 100644 --- a/sys/dev/usb/umass.c +++ b/sys/dev/usb/umass.c @@ -582,14 +582,16 @@ umass_match_proto(struct umass_softc *sc, usbd_interface_handle iface, /* Revisions < 1.28 do not handle the inerrupt endpoint * very well. */ - if (UGETW(dd->bcdDevice) < 0x128) + if (UGETW(dd->bcdDevice) < 0x128) { sc->proto = PROTO_UFI | PROTO_CBI; - else + } else { #if CBI_I sc->proto = PROTO_UFI | PROTO_CBI_I; #else sc->proto = PROTO_UFI | PROTO_CBI; #endif + } + /* * Revisions < 1.28 do not have the TEST UNIT READY command * Revisions == 1.28 have a broken TEST UNIT READY @@ -599,11 +601,9 @@ umass_match_proto(struct umass_softc *sc, usbd_interface_handle iface, sc->quirks |= RS_NO_CLEAR_UA; sc->transfer_speed = UMASS_FLOPPY_TRANSFER_SPEED; - return(UMATCH_VENDOR_PRODUCT_REV); + return(UMATCH_VENDOR_PRODUCT); } - - id = usbd_get_interface_descriptor(iface); if (id == NULL || id->bInterfaceClass != UCLASS_MASS) return(UMATCH_NONE);