From: Benjamin Romer Date: Fri, 5 Dec 2014 22:09:16 +0000 (-0500) Subject: staging: unisys: refactor visorchipset_file_init() X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~83^2~509 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7381312852808e88faaecd60eff3eb1d0dd0dcd8;p=pandora-kernel.git staging: unisys: refactor visorchipset_file_init() Fix the declaration so it is a single line. Fix CamelCase parameter names: MajorDev => major_dev pControlVm_channel => controlvm_channel Remove the unnecessary gotos and just return directly in error cases. Fix the last error condition so it returns the result of cdev_add() instead of always zero. Signed-off-by: Ken Depro Signed-off-by: Benjamin Romer Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed