projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0c92ddc
)
hwmon: (scmi-hwmon) Avoid comma separated statements
author
Joe Perches
<joe@perches.com>
Tue, 25 Aug 2020 04:56:08 +0000
(21:56 -0700)
committer
Guenter Roeck
<linux@roeck-us.net>
Wed, 23 Sep 2020 16:42:41 +0000
(09:42 -0700)
Use semicolons and braces.
Signed-off-by: Joe Perches <joe@perches.com>
Link:
https://lore.kernel.org/r/5e1ca60df261e3bfd0e6510e388581a1d1f52c77.1598331149.git.joe@perches.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/scmi-hwmon.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/hwmon/scmi-hwmon.c
b/drivers/hwmon/scmi-hwmon.c
index d421e691318b32b7f89d77fc33f2c2a49bb0002f..09ce30cba54b69142c1cd69434ba1758d200e9ad 100644
(file)
--- a/
drivers/hwmon/scmi-hwmon.c
+++ b/
drivers/hwmon/scmi-hwmon.c
@@
-202,8
+202,10
@@
static int scmi_hwmon_probe(struct scmi_device *sdev)
}
}
- if (nr_count[hwmon_temp])
- nr_count[hwmon_chip]++, nr_types++;
+ if (nr_count[hwmon_temp]) {
+ nr_count[hwmon_chip]++;
+ nr_types++;
+ }
scmi_hwmon_chan = devm_kcalloc(dev, nr_types, sizeof(*scmi_hwmon_chan),
GFP_KERNEL);