commit | 430fdbd3b7ea4a820d4c1aa936ede77433cfa818 | [log] [tgz] |
---|---|---|
author | Daniel Mack <zonque@gmail.com> | Wed Aug 27 19:09:03 2014 +0200 |
committer | Felipe Balbi <balbi@ti.com> | Tue Sep 02 09:17:04 2014 -0500 |
tree | f62b88c86a66d554c2fe51596189861a5393bfe0 | |
parent | 4953ef658910416655cdb4b61618458aa11302ab [diff] |
usb: gadget: f_uac2: restructure some code in afunc_set_alt() Restructure some code to make it easier to read. While at it, return -ENOMEM instead of -EINVAL if usb_ep_alloc_request() fails, and omit the logging in such cases (the mm core will complain loud enough). Signed-off-by: Daniel Mack <zonque@gmail.com> Signed-off-by: Felipe Balbi <balbi@ti.com>