diff options
author | Vincent Pelletier <[email protected]> | 2017-01-09 13:46:00 +0000 |
---|---|---|
committer | Felipe Balbi <[email protected]> | 2017-01-12 10:00:30 +0200 |
commit | 08f37148b6a915a6996c7dbef87769b9efee2dba (patch) | |
tree | 7779671975d52ece5ebda1f48a9bc4a7b2e408e4 /lib/test-string_helpers.c | |
parent | 9383e084a88d04d442ea2dce128edff05f344e5c (diff) |
usb: gadget: f_fs: Fix iterations on endpoints.
When zero endpoints are declared for a function, there is no endpoint
to disable, enable or free, so replace do...while loops with while loops.
Change pre-decrement to post-decrement to iterate the same number of times
when there are endpoints to process.
Signed-off-by: Vincent Pelletier <[email protected]>
Signed-off-by: Felipe Balbi <[email protected]>
Diffstat (limited to 'lib/test-string_helpers.c')
0 files changed, 0 insertions, 0 deletions