Sender : Ramakrishna Pallala 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 {.n++%ݶw{.n+{G{ayʇڙ,jfhz_(階ݢj"mG?&~iOzv^m ?I