Re: [patch v2] usb: gadget: precedence bug in show_requests()

2013-01-24 Thread Alexander Shishkin
Dan Carpenter writes: > The intent here was to have parenthesis around the (ci->hw_ep_max / 2) > so that it counts like "0 1 2 0 1 2". In the current code, the mod > operation happens first so it counts like "0 0 1 1 2 2". > > Signed-off-by: Dan Carpenter Thanks, I added this one on top of my

[patch v2] usb: gadget: precedence bug in show_requests()

2013-01-20 Thread Dan Carpenter
The intent here was to have parenthesis around the (ci->hw_ep_max / 2) so that it counts like "0 1 2 0 1 2". In the current code, the mod operation happens first so it counts like "0 0 1 1 2 2". Signed-off-by: Dan Carpenter --- v2: fixed the changelog. mod and divide have the same precedence d