svn commit: r262125 - head/sys/dev/usb/controller

2014-02-17 Thread Dimitry Andric
Author: dim
Date: Mon Feb 17 20:08:11 2014
New Revision: 262125
URL: http://svnweb.freebsd.org/changeset/base/262125

Log:
  In sys/dev/usb/controller/uss820dci.c, similar to r261977, fix a warning
  about uss820dci_odevd being unused, by adding it to the part that
  handles getting descriptors.
  
  Reported by:  loos
  Reviewed by:  hselasky
  MFC after:3 days

Modified:
  head/sys/dev/usb/controller/uss820dci.c

Modified: head/sys/dev/usb/controller/uss820dci.c
==
--- head/sys/dev/usb/controller/uss820dci.c Mon Feb 17 20:06:09 2014
(r262124)
+++ head/sys/dev/usb/controller/uss820dci.c Mon Feb 17 20:08:11 2014
(r262125)
@@ -2005,6 +2005,13 @@ tr_handle_get_descriptor:
len = sizeof(uss820dci_devd);
ptr = (const void *)uss820dci_devd;
goto tr_valid;
+   case UDESC_DEVICE_QUALIFIER:
+   if (value  0xff) {
+   goto tr_stalled;
+   }
+   len = sizeof(uss820dci_odevd);
+   ptr = (const void *)uss820dci_odevd;
+   goto tr_valid;
case UDESC_CONFIG:
if (value  0xff) {
goto tr_stalled;
___
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to svn-src-head-unsubscr...@freebsd.org


Re: svn commit: r262125 - head/sys/dev/usb/controller

2014-02-17 Thread Luiz Otavio O Souza
On Mon, Feb 17, 2014 at 5:08 PM, Dimitry Andric wrote:

 Author: dim
 Date: Mon Feb 17 20:08:11 2014
 New Revision: 262125
 URL: http://svnweb.freebsd.org/changeset/base/262125

 Log:
   In sys/dev/usb/controller/uss820dci.c, similar to r261977, fix a warning
   about uss820dci_odevd being unused, by adding it to the part that
   handles getting descriptors.


Thanks for the quick fix!

Luiz
___
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to svn-src-head-unsubscr...@freebsd.org