commit | 547a1c99d0052c8bee0a8fe4091e6a9094c3cde3 | [log] [tgz] |
---|---|---|
author | Jean Delvare <khali@linux-fr.org> | Fri Nov 04 12:00:46 2011 +0100 |
committer | Jean Delvare <khali@endymion.delvare> | Fri Nov 04 12:00:46 2011 +0100 |
tree | 59b992509ab6c0a24df9f0391e1f974ff6269c6f | |
parent | 24d6e2a89a1ff0a035f163a83a2812a3192083b6 [diff] |
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>