Searched hist:"674 d0ed8588c11ec9f70c8427ac83a73e0d156d5" (Results 1 – 2 of 2) sorted by relevance
/openbmc/linux/include/linux/ |
H A D | hwmon-vid.h | diff 674d0ed8588c11ec9f70c8427ac83a73e0d156d5 Fri Sep 13 12:59:27 CDT 2013 Guenter Roeck <linux@roeck-us.net> 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>
|
/openbmc/linux/drivers/hwmon/ |
H A D | atxp1.c | diff 674d0ed8588c11ec9f70c8427ac83a73e0d156d5 Fri Sep 13 12:59:27 CDT 2013 Guenter Roeck <linux@roeck-us.net> 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>
|