diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2013-09-11 09:49:48 +0530 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2013-09-11 13:01:31 -0700 |
commit | 1a3abbd0b9a16e40fd4718f99896c437a193c0a1 (patch) | |
tree | 860969b3af4d7b561caa11a46ce51b1c06589dc9 /drivers/hwmon/ibmaem.c | |
parent | a22a0fdba4191473581f86c9dd5361cf581521d3 (diff) | |
download | linux-1a3abbd0b9a16e40fd4718f99896c437a193c0a1.tar.gz linux-1a3abbd0b9a16e40fd4718f99896c437a193c0a1.tar.bz2 linux-1a3abbd0b9a16e40fd4718f99896c437a193c0a1.zip |
hwmon: (emc2103) Fix return value
kstrtol() returns appropriate error values. Use those instead of
hardcoding. Silences several sparse messages of following type:
"why not propagate 'result' from kstrtol() instead of (-22)?"
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Cc: Steve Glendinning <steve.glendinning@shawell.net>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon/ibmaem.c')
0 files changed, 0 insertions, 0 deletions