commit | 08f37148b6a915a6996c7dbef87769b9efee2dba | [log] [tgz] |
---|---|---|
author | Vincent Pelletier <plr.vincent@gmail.com> | Mon Jan 09 13:46:00 2017 +0000 |
committer | Felipe Balbi <felipe.balbi@linux.intel.com> | Thu Jan 12 10:00:30 2017 +0200 |
tree | 7779671975d52ece5ebda1f48a9bc4a7b2e408e4 | |
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 <plr.vincent@gmail.com> Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>