summaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/function/f_uac2.c
diff options
context:
space:
mode:
authorMichal Nazarewicz2014-08-27 22:58:48 +0200
committerFelipe Balbi2014-09-02 16:16:47 +0200
commit4953ef658910416655cdb4b61618458aa11302ab (patch)
tree81d62c68c8adb408e6371c96f351ec109cfc50b1 /drivers/usb/gadget/function/f_uac2.c
parenttools: ffs-test: add compatibility code for old kernels (diff)
downloadkernel-qcow2-linux-4953ef658910416655cdb4b61618458aa11302ab.tar.gz
kernel-qcow2-linux-4953ef658910416655cdb4b61618458aa11302ab.tar.xz
kernel-qcow2-linux-4953ef658910416655cdb4b61618458aa11302ab.zip
usb: gadget: f_mass_storage: simplify start_transfer slightly
Flatten the start_transfer function by reversing the if condition and returning early out of the function if everything went fine. It makes the function look less complicated, at least to me, and easier to understand. Signed-off-by: Michal Nazarewicz <mina86@mina86.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/gadget/function/f_uac2.c')
0 files changed, 0 insertions, 0 deletions