Re: [linux-usb-devel] Still trying to understand USB Stack underLinux

2002-07-24 Thread Johann Deneux
Soewono Effendi wrote: > Hi Johann, > > thanks for your reply. > Surelly I understand what the codes > Sorry, I missed the point of the question. My guess would be that uhci_hub_status_data should return len, perhaps ? This variable is computed, but not used, apparently. It would make sense

Re: [linux-usb-devel] Still trying to understand USB Stack underLinux

2002-07-24 Thread Johann Deneux
Soewono Effendi wrote: > Hi all, > > > I'm just curious if there is any particular reason to use the following code > > return !!*buf; > > instead of the simple > > return (int) *buf; > This would be a trick to return 0 or 1. Take for example *buf equal to 3. !*buf -> !3 -> !