aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Petter Selasky <hselasky@FreeBSD.org>2016-04-07 07:19:30 +0000
committerHans Petter Selasky <hselasky@FreeBSD.org>2016-04-07 07:19:30 +0000
commit206d01575b64b2ccb6f0f98eaf0a527bd050d6bb (patch)
tree7ad714d6f480f2812fb01d50381e880fbf73b40a
parent44493b0813c61d05da59558bfb33d33a7f0b7936 (diff)
downloadsrc-206d01575b64b2ccb6f0f98eaf0a527bd050d6bb.tar.gz
src-206d01575b64b2ccb6f0f98eaf0a527bd050d6bb.zip
MFC r296342:
Allow for overlapping quirk device ranges. Prior to this patch only the first device entry matching the USB vendor, product and revision would be searched for quirks. After this patch all device entries will be searched for quirks.
Notes
Notes: svn path=/stable/8/; revision=297644
-rw-r--r--sys/dev/usb/quirk/usb_quirk.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/dev/usb/quirk/usb_quirk.c b/sys/dev/usb/quirk/usb_quirk.c
index 851ba88ed5bb..eddf87ad1536 100644
--- a/sys/dev/usb/quirk/usb_quirk.c
+++ b/sys/dev/usb/quirk/usb_quirk.c
@@ -613,8 +613,6 @@ usb_test_quirk_by_info(const struct usbd_lookup_info *info, uint16_t quirk)
return (1);
}
}
- /* no quirk found */
- break;
}
mtx_unlock(&usb_quirk_mtx);
done: