From: Jean Delvare Date: Fri, 4 Nov 2011 11:00:46 +0000 (+0100) Subject: hwmon: (ibmaem) Fix error paths X-Git-Tag: v3.2-rc1~64^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=547a1c99d0052c8bee0a8fe4091e6a9094c3cde3;p=pandora-kernel.git hwmon: (ibmaem) Fix error paths I am under the impression that error paths in functions aem_init_aem1_inst() and aem_init_aem2_inst() are incorrect. In several cases, the function returns 0 on error, which I suspect is not intended. Fix this by properly tracking error codes. Signed-off-by: Jean Delvare Acked-by: Darrick J. Wong Acked-by: Guenter Roeck --- Reading git-diff-tree failed