From: Joe Perches Date: Tue, 25 Aug 2020 04:56:08 +0000 (-0700) Subject: hwmon: (scmi-hwmon) Avoid comma separated statements X-Git-Tag: v5.10-rc1~170^2~33 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0ef0f755b36e369d2195150fc7bf5634d4e55a2f;p=thirdparty%2Fkernel%2Flinux.git hwmon: (scmi-hwmon) Avoid comma separated statements Use semicolons and braces. Signed-off-by: Joe Perches Link: https://lore.kernel.org/r/5e1ca60df261e3bfd0e6510e388581a1d1f52c77.1598331149.git.joe@perches.com Signed-off-by: Guenter Roeck --- diff --git a/drivers/hwmon/scmi-hwmon.c b/drivers/hwmon/scmi-hwmon.c index d421e691318b3..09ce30cba54b6 100644 --- 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);