From: Daniel Mack Date: Wed, 27 Aug 2014 17:09:03 +0000 (+0200) Subject: usb: gadget: f_uac2: restructure some code in afunc_set_alt() X-Git-Tag: fixes-for-v3.18-merge-window~16^2~118^2~47 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=430fdbd3b7ea4a820d4c1aa936ede77433cfa818;p=pandora-kernel.git 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 Signed-off-by: Felipe Balbi --- Reading git-diff-tree failed