Commit 0ef0f755 authored by Joe Perches's avatar Joe Perches Committed by Guenter Roeck

hwmon: (scmi-hwmon) Avoid comma separated statements

Use semicolons and braces.
Signed-off-by: default avatarJoe Perches <joe@perches.com>
Link: https://lore.kernel.org/r/5e1ca60df261e3bfd0e6510e388581a1d1f52c77.1598331149.git.joe@perches.comSigned-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent 0c92ddcc
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment