]> git.itanic.dy.fi Git - linux-stable/commit
hwmon: (sis5595) Do PCI error checks on own line
authorIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Thu, 24 Aug 2023 13:28:31 +0000 (16:28 +0300)
committerGuenter Roeck <linux@roeck-us.net>
Fri, 25 Aug 2023 13:20:53 +0000 (06:20 -0700)
commita1f38987dd1cd2fce4a6a00fc7377c3d556a240f
treecd04a936430f534add3239f80741b1df654c06d4
parent1e3c3a7989495512f2b180adb4f22d500cb79960
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>
drivers/hwmon/sis5595.c