diff options
author | Patrick Williams <patrick@stwcx.xyz> | 2017-04-18 11:50:57 -0500 |
---|---|---|
committer | Patrick Williams <patrick@stwcx.xyz> | 2017-04-18 11:51:01 -0500 |
commit | 4736b9176ceced0dc0261ceeff70eac5963f4411 (patch) | |
tree | a8ffc5834ae8a82f7ac036170b075603bed13042 | |
parent | db55a5d7ad10390ffcf89c7b033cf629afdf0043 (diff) | |
download | phosphor-host-ipmid-4736b9176ceced0dc0261ceeff70eac5963f4411.tar.gz phosphor-host-ipmid-4736b9176ceced0dc0261ceeff70eac5963f4411.zip |
sensorhandler: removed un-needed sd_bus_ref
sdbusplus's bus object has a change in semantics that no longer
require a 'sd_bus_ref' call. See changes for openbmc/openbmc#1432.
Change-Id: I6e953cfbd83abec1534e75b8fbf6c7e5b711ceb3
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
-rw-r--r-- | sensorhandler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sensorhandler.cpp b/sensorhandler.cpp index 95d8ad0..892511a 100644 --- a/sensorhandler.cpp +++ b/sensorhandler.cpp @@ -410,7 +410,7 @@ ipmi_ret_t setSensorReading(void *request) } objects.emplace(iter->second.sensorPath, std::move(interfaces)); - sdbusplus::bus::bus bus{sd_bus_ref(ipmid_get_sd_bus_connection())}; + sdbusplus::bus::bus bus{ipmid_get_sd_bus_connection()}; using namespace std::string_literals; static const auto intf = "xyz.openbmc_project.Inventory.Manager"s; static const auto path = "/xyz/openbmc_project/inventory"s; |