diff options
author | Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> | 2023-08-24 15:28:31 +0200 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2023-08-25 15:20:53 +0200 |
commit | a1f38987dd1cd2fce4a6a00fc7377c3d556a240f (patch) | |
tree | cd04a936430f534add3239f80741b1df654c06d4 /drivers/hwmon/mlxreg-fan.c | |
parent | hwmon: (vt8231) Do PCI error checks on own line (diff) | |
download | linux-a1f38987dd1cd2fce4a6a00fc7377c3d556a240f.tar.xz linux-a1f38987dd1cd2fce4a6a00fc7377c3d556a240f.zip |
hwmon: (sis5595) Do PCI error checks on own line
Instead of if conditions with line splits, use the usual error handling
pattern with a separate variable to improve readability. Handle error
print with a label instead of trying to chain everything into a single
if condition.
No functional changes intended.
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Link: https://lore.kernel.org/r/20230824132832.78705-14-ilpo.jarvinen@linux.intel.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon/mlxreg-fan.c')
0 files changed, 0 insertions, 0 deletions