lkml.org 
[lkml]   [2005]   [Oct]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: bug in handling of highspeed usb HID devices
Date
> 
>
> Re-calculation in usb_fill_int_urb makes more sense, because it is the
> most general approach. So it would make sense to remove it from
> hid-core.c.
>

Patch looks correct to me from a purely logical perspective. (IOW I read that file first time :)

But since interval is passed as a parameter to the usb_fill_int_urb() function, I think it is more natural to remove the recalculation from usb_fill_int_urb() - If caller passes a parameter and has enough info to determine its value, it makes sense for the caller to pass in the right value and the callee to just take it as it is.

Not a big deal anyway though.

Parag



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-10-12 23:14    [W:0.029 / U:0.588 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site