]> git.karo-electronics.de Git - karo-tx-linux.git/commit
hwmon: (ibmaem) Fix error paths
authorJean Delvare <khali@linux-fr.org>
Tue, 30 Aug 2011 01:16:55 +0000 (11:16 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 30 Aug 2011 01:16:55 +0000 (11:16 +1000)
commit5fcbe697504a15e713b88c511b5a5bcef7109fae
tree9833b6b116b1db839bbeed0c9d5b6cfad8e701a1
parent89e1b38376a81c8d48f057b047fdd5e80bdb2364
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 <khali@linux-fr.org>
Acked-by: Darrick J. Wong <djwong@us.ibm.com>
Acked-by: Guenter Roeck <guenter.roeck@ericsson.com>
drivers/hwmon/ibmaem.c