Re: [PATCHv1 1/1] [Power Supply]: Fix error handling in max17042 fuelgauge

From: MyungJoo Ham
Date: Sun Sep 04 2011 - 21:24:46 EST


Sender : Ramakrishna Pallala<ramakrishna.pallala@xxxxxxxxx> Date : 2011-09-02 15:45 (GMT+09:00)
>
> 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
> ---
> drivers/power/max17042_battery.c | 85 ++++++++++++++++++++++++++------------
> 1 files changed, 58 insertions(+), 27 deletions(-)
>

Acked-by: MyungJoo Ham <myungjoo.ham@xxxxxxxxxxx>N떑꿩ìr¸›y鉉싕b²XФ푤vØ^–)頻{.nÇ+돴¥Š{±묎çzX㎍썳變}©옽Æ zÚ&j:+v돣¾«묎çzZ+€Ê+zf"·hš닱~넮녬iÿ鎬z¹®wⅱ¸?솳鈺Ú&¢)刪f뷌^j푹y§m끷@A«a뛴ÿ 0띠h®å’i