summaryrefslogtreecommitdiffstats
path: root/kernel/futex.c
diff options
context:
space:
mode:
authorRamakrishna Pallala <ramakrishna.pallala@intel.com>2011-11-26 01:11:15 +0100
committerAnton Vorontsov <cbouatmailru@gmail.com>2011-11-26 01:11:15 +0100
commit60a1f6e4462bb71b39543ddbca314886a55adb9d (patch)
treeb7e8216b6c35c8fa4423d33cb928666a2f11e371 /kernel/futex.c
parentds2760_battery: Add rated capacity of the hx4700 3600mAh battery (diff)
downloadlinux-60a1f6e4462bb71b39543ddbca314886a55adb9d.tar.xz
linux-60a1f6e4462bb71b39543ddbca314886a55adb9d.zip
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 <ramakrishna.pallala@intel.com> Acked-by: MyungJoo Ham <myungjoo.ham@samsung.com> Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>
Diffstat (limited to 'kernel/futex.c')
0 files changed, 0 insertions, 0 deletions