]> www.infradead.org Git - users/jedix/linux-maple.git/commit
hwmon: (chipcap2) Switch to guard() for mutext handling
authorJavier Carrasco <javier.carrasco.cruz@gmail.com>
Thu, 21 Nov 2024 21:44:56 +0000 (22:44 +0100)
committerGuenter Roeck <linux@roeck-us.net>
Sat, 14 Dec 2024 16:00:44 +0000 (08:00 -0800)
commit232ba88182083b4410df41cf310c9a16b84e547e
treef5ecfeb1dddb6c9393b27a707b78ddf2671529fb
parentf6477c85db0c34c8ed98c899d698251b4847d387
hwmon: (chipcap2) Switch to guard() for mutext handling

Switch to guard() for mutex handling to simplify the code, getting rid
of the 'ret = x, break; return ret;' construct and return the result
of the operation instead.

Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/chipcap2.c