mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-11-10 04:42:22 -05:00
usb: chipidea: fix precedence bug in ci_requests_show()
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 <[email protected]> [rebased on top of debug.c changes] Signed-off-by: Alexander Shishkin <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
adf0f735e6
commit
ba8618e067
1 changed files with 1 additions and 1 deletions
|
|
@ -175,7 +175,7 @@ static int ci_requests_show(struct seq_file *s, void *data)
|
|||
req = list_entry(ptr, struct ci13xxx_req, queue);
|
||||
|
||||
seq_printf(s, "EP=%02i: TD=%08X %s\n",
|
||||
i % ci->hw_ep_max/2, (u32)req->dma,
|
||||
i % (ci->hw_ep_max / 2), (u32)req->dma,
|
||||
((i < ci->hw_ep_max/2) ? "RX" : "TX"));
|
||||
|
||||
for (j = 0; j < qsize; j++)
|
||||
|
|
|
|||
Loading…
Reference in a new issue