From: Benjamin Romer Date: Fri, 5 Dec 2014 22:08:55 +0000 (-0500) Subject: staging: unisys: refactor create_device() X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~83^2~530 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8a05beb1156ac5b1c8dc8c1df9756b279ebe2a22;p=pandora-kernel.git staging: unisys: refactor create_device() OK, lets clean up this messy function. The entire thing is reflowed so spacing and indentation is correct. Tests that created extra indentation were swapped for equivalent negative tests that did not create extra indentation. Use of cmp_uuid_le() were fixed to test specifically for the zero case, and not to lazily use !cmp_uuid_le(). CamelCase local variable names were fixed: busNo => bus_no devNo => dev_no minSize => min_size pReqHandler => req_handler Away => cleanup Finally, the struct guest_msgs cmd declaration was moved to the beginning of the function, and cringing and wincing at the function was significantly reduced. Signed-off-by: Bryan Thompson Signed-off-by: Benjamin Romer Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed