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

hwmon: (scmi-hwmon) Avoid comma separated statements

parent 0c92ddcc
Loading
Loading
Loading
Loading
+4 −2
Original line number Original line Diff line number Diff line
@@ -202,8 +202,10 @@ static int scmi_hwmon_probe(struct scmi_device *sdev)
		}
		}
	}
	}


	if (nr_count[hwmon_temp])
	if (nr_count[hwmon_temp]) {
		nr_count[hwmon_chip]++, nr_types++;
		nr_count[hwmon_chip]++;
		nr_types++;
	}


	scmi_hwmon_chan = devm_kcalloc(dev, nr_types, sizeof(*scmi_hwmon_chan),
	scmi_hwmon_chan = devm_kcalloc(dev, nr_types, sizeof(*scmi_hwmon_chan),
				       GFP_KERNEL);
				       GFP_KERNEL);