sensors: don't pass excess conn handler
We don't need to pass connection handler to setInitialProperties method
since it already part of the sensor class.
Tested: no changes in behaviour.
Signed-off-by: Andrei Kartashev <a.kartashev@yadro.com>
Change-Id: Icaaccbeaf14e22648a6a1bce381f0f0a606b0ddd
diff --git a/src/ExitAirTempSensor.cpp b/src/ExitAirTempSensor.cpp
index fd31473..58f7468 100644
--- a/src/ExitAirTempSensor.cpp
+++ b/src/ExitAirTempSensor.cpp
@@ -183,7 +183,7 @@
association = objectServer.add_interface(
"/xyz/openbmc_project/sensors/airflow/" + name, association::interface);
- setInitialProperties(conn, sensor_paths::unitCFM);
+ setInitialProperties(sensor_paths::unitCFM);
pwmLimitIface =
objectServer.add_interface("/xyz/openbmc_project/control/pwm_limit",
@@ -526,7 +526,7 @@
association = objectServer.add_interface(
"/xyz/openbmc_project/sensors/temperature/" + name,
association::interface);
- setInitialProperties(conn, sensor_paths::unitDegreesC);
+ setInitialProperties(sensor_paths::unitDegreesC);
}
ExitAirTempSensor::~ExitAirTempSensor()