]> www.infradead.org Git - users/dwmw2/linux.git/commit
hwmon: fix error return code in abituguru_probe()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Mon, 13 May 2013 06:01:43 +0000 (14:01 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 24 May 2013 18:35:47 +0000 (11:35 -0700)
commiteb3c8adad2ebf3197d6feaef84d4df7561687fd6
tree9989e2cd5c278a89c4090f9dbdc924842ca849b6
parent514b17caf165ec31d1f6b9d40c645aed55a0b721
hwmon: fix error return code in abituguru_probe()

commit ecacb0b17c08fae89f65468727f0e4b8e91da4e1 upstream.

Fix to return a negative error code from the error handling
case instead of 0, as done elsewhere in this function.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hwmon/abituguru.c