Skip to content
Commit 37f665ff authored by Joaquín Ignacio Aramendía's avatar Joaquín Ignacio Aramendía Committed by Guenter Roeck
Browse files

hwmon: (oxp-sensors) Simplify logic of error return



Take return logic on error out of if-else, eliminating
duplicated code in tt_togle_store() function.

Signed-off-by: default avatarJoaquín Ignacio Aramendía <samsagax@gmail.com>
Link: https://lore.kernel.org/r/20230617181159.32844-3-samsagax@gmail.com


Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent d7696214
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