Author: dim
Date: Wed Feb 19 08:05:42 2014
New Revision: 262213
URL: http://svnweb.freebsd.org/changeset/base/262213

Log:
  MFC r261977:
  
  In sys/dev/usb/controller/musb_otg.c, fix a warning about musbotg_odevd
  being unused, by adding it to the part that handles getting descriptors.
  
  Reviewed by:  hselasky

Modified:
  stable/9/sys/dev/usb/controller/musb_otg.c
Directory Properties:
  stable/9/sys/   (props changed)

Changes in other areas also in this revision:
Modified:
  stable/10/sys/dev/usb/controller/musb_otg.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/9/sys/dev/usb/controller/musb_otg.c
==============================================================================
--- stable/9/sys/dev/usb/controller/musb_otg.c  Wed Feb 19 07:59:50 2014        
(r262212)
+++ stable/9/sys/dev/usb/controller/musb_otg.c  Wed Feb 19 08:05:42 2014        
(r262213)
@@ -3776,6 +3776,13 @@ tr_handle_get_descriptor:
                len = sizeof(musbotg_devd);
                ptr = (const void *)&musbotg_devd;
                goto tr_valid;
+       case UDESC_DEVICE_QUALIFIER:
+               if (value & 0xff) {
+                       goto tr_stalled;
+               }
+               len = sizeof(musbotg_odevd);
+               ptr = (const void *)&musbotg_odevd;
+               goto tr_valid;
        case UDESC_CONFIG:
                if (value & 0xff) {
                        goto tr_stalled;
_______________________________________________
svn-src-stable-9@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-stable-9
To unsubscribe, send any mail to "svn-src-stable-9-unsubscr...@freebsd.org"

Reply via email to