From: Michal Nazarewicz Date: Wed, 27 Aug 2014 20:58:48 +0000 (+0200) Subject: usb: gadget: f_mass_storage: simplify start_transfer slightly X-Git-Tag: fixes-for-v3.18-merge-window~16^2~118^2~48 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4953ef658910416655cdb4b61618458aa11302ab;p=pandora-kernel.git 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 Signed-off-by: Felipe Balbi --- Reading git-diff-tree failed