]> git.itanic.dy.fi Git - linux-stable/commit
hwmon: (vt8231) Do PCI error checks on own line
authorIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Thu, 24 Aug 2023 13:28:24 +0000 (16:28 +0300)
committerGuenter Roeck <linux@roeck-us.net>
Fri, 25 Aug 2023 13:19:29 +0000 (06:19 -0700)
commit1e3c3a7989495512f2b180adb4f22d500cb79960
tree0aa6b852e86ac066a13434c74916238b638dfc01
parent70332ec735202ceb874407be29f68919ab898dce
hwmon: (vt8231) 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.

No functional changes intended.

Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Link: https://lore.kernel.org/r/20230824132832.78705-7-ilpo.jarvinen@linux.intel.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/vt8231.c