commit | 5cae84a58ee60eb54f636133f4f3ede9af93d476 | [log] [tgz] |
---|---|---|
author | Guenter Roeck <linux@roeck-us.net> | Sat Mar 28 07:44:59 2015 -0700 |
committer | Guenter Roeck <linux@roeck-us.net> | Tue Apr 19 06:32:35 2016 -0700 |
tree | 827e4460bb1bc089cffd3286fb546cce0f596a37 | |
parent | 60878bcfd3dd2ea146dacf41313f8caa365df9a1 [diff] |
hwmon: (it87) Simplify error return in it87_device_add Return directly on errors if there is no cleanup necessary. Don't create an error message on memory allocation errors. Tested-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com> Signed-off-by: Guenter Roeck <linux@roeck-us.net>