From: Ramakrishna Pallala Date: Sat, 26 Nov 2011 00:11:15 +0000 (+0400) Subject: max17042_battery: Fix error handling X-Git-Tag: v3.3-rc1~98^2~29 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=60a1f6e4462bb71b39543ddbca314886a55adb9d;p=pandora-kernel.git max17042_battery: Fix error handling In max17042_get_property(...), the values returned by max17042_read_reg are directly assigned to the variables, even if the read results in an error. This patch checks for the return code from max17042_read_reg and exits the function if there is any error. Signed-off-by: Ramakrishna Pallala Acked-by: MyungJoo Ham Signed-off-by: Anton Vorontsov --- Reading git-diff-tree failed