]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (sch5627) Remove unnecessary error path
authorArmin Wolf <W_Armin@gmx.de>
Sat, 17 Apr 2021 21:09:20 +0000 (23:09 +0200)
committerGuenter Roeck <linux@roeck-us.net>
Tue, 20 Apr 2021 13:50:14 +0000 (06:50 -0700)
commita6ef6aed400fbdafd60fc09e038adab06fe129a1
tree1ee2e5c4182db620e595d524971ab56eeb3d10d1
parentc13f3a05bde2a9f06c84ae98d73d7a716bd3fb45
hwmon: (sch5627) Remove unnecessary error path

Calling remove() on error whould have only unregistered
the watchdog, and since a failure in registering him
is considered non-fatal and happens last, remove the
error path and return the error codes directly.

Signed-off-by: Armin Wolf <W_Armin@gmx.de>
Link: https://lore.kernel.org/r/20210417210920.15496-3-W_Armin@gmx.de
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/sch5627.c