summaryrefslogtreecommitdiffstats
path: root/testit.cpp
diff options
context:
space:
mode:
authorEmily Shaffer <emilyshaffer@google.com>2017-04-03 10:27:08 -0700
committerEmily Shaffer <emilyshaffer@google.com>2017-05-19 21:22:12 +0000
commit391f33039f7bc22e61fbcd2ebada31a6cb4a8ec6 (patch)
treed87ae6c171df80d768ebb99c0836d9971b89fb2e /testit.cpp
parentd5899e7e0c1bfc0b69a9f5bc69267642ad6c038c (diff)
downloadphosphor-host-ipmid-391f33039f7bc22e61fbcd2ebada31a6cb4a8ec6.tar.gz
phosphor-host-ipmid-391f33039f7bc22e61fbcd2ebada31a6cb4a8ec6.zip
sensorhandler: Refactor find_sensor to eliminate redundant call
find_openbmc_path was being called within find_sensor as well as following find_sensor Change-Id: Ie94eab7afbe34f214a07bda49bfbce729b20f237 Signed-off-by: Emily Shaffer <emilyshaffer@google.com>
Diffstat (limited to 'testit.cpp')
-rw-r--r--testit.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/testit.cpp b/testit.cpp
index a0cd2c1..072b5d7 100644
--- a/testit.cpp
+++ b/testit.cpp
@@ -12,7 +12,7 @@ unsigned char g_sensortype [][2] = {
{0xFF ,0xff}
};
-uint8_t find_sensor(uint8_t sensor_number) {
+uint8_t find_type_for_sensor_number(uint8_t sensor_number) {
int i=0;
uint8_t rc;
@@ -117,4 +117,4 @@ int main() {
testprep(); check_results(updateSensorRecordFromSSRAESC(testrec_invalidnumber), "", "");
return 0;
-} \ No newline at end of file
+}
OpenPOWER on IntegriCloud