Date: Fri, 1 May 2009 18:39:36 +0000 From: Sylvestre Gallon <ccna.syl@gmail.com> To: Perforce Change Reviews <perforce@freebsd.org> Subject: Re: PERFORCE change 161438 for review Message-ID: <164b4c9c0905011139v3fec7129n7ee15031fb285ddd@mail.gmail.com> In-Reply-To: <200905011646.n41GkuPG076836@repoman.freebsd.org> References: <200905011646.n41GkuPG076836@repoman.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, May 1, 2009 at 4:46 PM, Sylvestre Gallon <syl@freebsd.org> wrote: > http://perforce.freebsd.org/chv.cgi?CH=161438 > > Change 161438 by syl@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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?164b4c9c0905011139v3fec7129n7ee15031fb285ddd>