summaryrefslogtreecommitdiffstats
path: root/storageaddsel.cpp
diff options
context:
space:
mode:
authorEmily Shaffer <emilyshaffer@google.com>2017-04-05 15:09:41 -0700
committerEmily Shaffer <emilyshaffer@google.com>2017-06-06 10:55:40 -0700
commit2ae09b9a5cdcf5991b8a30688e89ab26f43a3f27 (patch)
tree7579ba68b1f2b25c8e2725b57fee126c2d7cebe7 /storageaddsel.cpp
parentfca6a4fc4baddf4880fe4d54d77a424bced21c76 (diff)
downloadphosphor-host-ipmid-2ae09b9a5cdcf5991b8a30688e89ab26f43a3f27.tar.gz
phosphor-host-ipmid-2ae09b9a5cdcf5991b8a30688e89ab26f43a3f27.zip
sensorhandler: Refactor find_openbmc_path to check sensor map first
Change-Id: I846d538643af77705d5160bf4d9127f758b5c749 Signed-off-by: Emily Shaffer <emilyshaffer@google.com>
Diffstat (limited to 'storageaddsel.cpp')
-rw-r--r--storageaddsel.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/storageaddsel.cpp b/storageaddsel.cpp
index b8b7a8d..9cebf9e 100644
--- a/storageaddsel.cpp
+++ b/storageaddsel.cpp
@@ -58,7 +58,7 @@ int find_sensor_type_string(uint8_t sensor_number, char **s) {
const char *p;
int r;
- r = find_openbmc_path("SENSOR", sensor_number, &a);
+ r = find_openbmc_path(sensor_number, &a);
if ((r < 0) || (a.bus[0] == 0)) {
// Just make a generic message for errors that
@@ -140,7 +140,7 @@ int create_esel_association(const uint8_t *buffer, char **m) {
sensor = p->sensornumber;
- find_openbmc_path("SENSOR", sensor, &dbusint);
+ find_openbmc_path(sensor, &dbusint);
// Simply no associations if the sensor can not be found
if (strlen(dbusint.path) < 1) {
OpenPOWER on IntegriCloud