Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 5cae84a5 authored by Guenter Roeck's avatar Guenter Roeck
Browse files

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: default avatarMartin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent 60878bcf
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment