diff options
| author | 2022-06-18 11:54:20 +0300 | |
|---|---|---|
| committer | 2022-06-21 16:30:31 +0200 | |
| commit | c09b1f372e746aeeb61ef8ffe0fea3970fd9273e (patch) | |
| tree | dfaebbea6e79f7a82571c3de04c0d30ac99a0728 /tools/perf/scripts/python | |
| parent | usb: gadget: aspeed_udc: fix missing spin_unlock_irqrestore in ast_udc_ep_queue (diff) | |
usb: gadget: aspeed_udc: cleanup loop in ast_dma_descriptor_setup()
The "chunk >= 0" condition does not work because count is a u32.
Also, really we shouldn't enter the loop when "chunk" is zero.
Once that condition is fixed then there is no need for the "last"
variable. I reversed the "if (chunk <= ep->chunk_max)" as well.
The new loop is much simpler.
Fixes: 055276c13205 ("usb: gadget: add Aspeed ast2600 udc driver")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/Yq2SvM2bbrtSd1H9@kili
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
