diff options
author | Kay Sievers <kay@vrfy.org> | 2013-10-11 11:23:34 +0200 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2014-01-09 19:41:48 -0500 |
commit | d903c48f9fb1dad2ec808f672d946e3bb579185a (patch) | |
tree | ca90f6d4f329c8815a45d2113c74eb88677ff066 /src | |
parent | b49063901eaa5f883a7f2d3c0fa4968eed5589b4 (diff) |
udev: usb_id - remove obsoleted bInterfaceSubClass == 5 match
bInterfaceSubClass == 5 is not a "floppy"; just identify the obsolete
QIC-157 interface as "generic".
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/udev/udev-builtin-usb_id.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/udev/udev-builtin-usb_id.c b/src/udev/udev-builtin-usb_id.c index e3bbd05e4b..3e2f43e1a6 100644 --- a/src/udev/udev-builtin-usb_id.c +++ b/src/udev/udev-builtin-usb_id.c @@ -91,6 +91,9 @@ static int set_usb_mass_storage_ifsubtype(char *to, const char *from, size_t len type_num = strtoul(from, &eptr, 0); if (eptr != from) { switch (type_num) { + case 1: /* RBC devices */ + type = "rbc"; + break; case 2: type = "atapi"; break; @@ -98,12 +101,8 @@ static int set_usb_mass_storage_ifsubtype(char *to, const char *from, size_t len type = "tape"; break; case 4: /* UFI */ - case 5: /* SFF-8070i */ type = "floppy"; break; - case 1: /* RBC devices */ - type = "rbc"; - break; case 6: /* Transparent SPC-2 devices */ type = "scsi"; break; |