diff options
author | Guenter Roeck <linux@roeck-us.net> | 2013-09-13 19:59:27 +0200 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2013-10-14 01:16:26 +0200 |
commit | 674d0ed8588c11ec9f70c8427ac83a73e0d156d5 (patch) | |
tree | b9494f789c84371fa68af0bcc6307f392d5ef77d /drivers/hwmon/g762.c | |
parent | hwmon: (acpi_power_meter) Use return value from acpi_bus_register_driver (diff) | |
download | linux-674d0ed8588c11ec9f70c8427ac83a73e0d156d5.tar.xz linux-674d0ed8588c11ec9f70c8427ac83a73e0d156d5.zip |
hwmon: (atxp1) Set and use error code from vid_to_reg()
vid_to_reg() returns -1 if it encounters an error. Return -EINVAL instead.
Its only caller, atxp1_storevcore(), doesn't use the return code but
returns -1 instead, which is wrong anyway as it means -EPERM.
Use the return value from vid_to_reg() instead to report the error.
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: Jean Delvare <khali@linux-fr.org>
Diffstat (limited to 'drivers/hwmon/g762.c')
0 files changed, 0 insertions, 0 deletions