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/ADCSensor.cpp b/src/ADCSensor.cpp
index aaef76d..0638b7d 100644
--- a/src/ADCSensor.cpp
+++ b/src/ADCSensor.cpp
@@ -71,7 +71,7 @@
}
association = objectServer.add_interface(
"/xyz/openbmc_project/sensors/voltage/" + name, association::interface);
- setInitialProperties(conn, sensor_paths::unitVolts);
+ setInitialProperties(sensor_paths::unitVolts);
}
ADCSensor::~ADCSensor()