PERFORCE change 161438 for review
Sylvestre Gallon
ccna.syl at gmail.com
Fri May 1 18:39:59 UTC 2009
On Fri, May 1, 2009 at 4:46 PM, Sylvestre Gallon <syl at freebsd.org> wrote:
> http://perforce.freebsd.org/chv.cgi?CH=161438
>
> Change 161438 by syl at syl_atuin on 2009/05/01 16:46:05
>
> Fix a little bug.
>
> Affected files ...
>
> .. //depot/projects/soc2009/syl_usb/src/lib/libusb/libusb10_desc.c#7 edit
>
> Differences ...
>
> ==== //depot/projects/soc2009/syl_usb/src/lib/libusb/libusb10_desc.c#7 (text+ko) ====
>
> @@ -106,7 +106,7 @@
> nalt = nif = pconf->num_interface;
> nend = 0;
> for (i = 0 ; i < nif ; i++) {
> - if (pconf->interface[i].num_altsetting > 1)
> + if (pconf->interface[i].num_altsetting > 0)
> {
> nalt += pconf->interface[i].num_altsetting;
> for (j = 0 ; j < nalt ; j++) {
>
More details about this submit :
nalt corresponds to the number of alternative interfaces. We need
to enter in this IF only if an alternative interface or more exist.
Cheers,
--
Sylvestre Gallon (http://devsyl.blogspot.com)
Fifth Grade Student @ Epitech & Researcher @ LSE
R&D @ Rathaxes (http://www.rathaxes.org)
More information about the p4-projects
mailing list