diff options
author | William A. Kennington III <wak@google.com> | 2018-04-27 14:31:51 -0700 |
---|---|---|
committer | Emily Shaffer <emilyshaffer@google.com> | 2018-05-22 18:22:20 +0000 |
commit | 2ecf51204690d99477352188e2b83def7a7c1f1a (patch) | |
tree | 219f098a1e6ca8a81cb5dcd18742e83075a6fada /app/watchdog.cpp | |
parent | 4b017a9b8728d19880d8d0de9cb994d7c0273769 (diff) | |
download | phosphor-host-ipmid-2ecf51204690d99477352188e2b83def7a7c1f1a.tar.gz phosphor-host-ipmid-2ecf51204690d99477352188e2b83def7a7c1f1a.zip |
watchdog: Get only the initialized property during reset
Since we switched to resetting the watchdog with a built-in method, we
are only using a single property from the watchdog. Instead of fetching
all the properties and reading just the initialized one, only request
the initialized property from the watchdog.
Change-Id: I5e29b5100629e1ce23f352b0b749a434cd1ab793
Signed-off-by: William A. Kennington III <wak@google.com>
Diffstat (limited to 'app/watchdog.cpp')
-rw-r--r-- | app/watchdog.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/watchdog.cpp b/app/watchdog.cpp index dbd7426..da8ccf3 100644 --- a/app/watchdog.cpp +++ b/app/watchdog.cpp @@ -31,11 +31,10 @@ ipmi_ret_t ipmi_app_watchdog_reset( try { WatchdogService wd_service; - WatchdogService::Properties wd_prop = wd_service.getProperties(); // Notify the caller if we haven't initialized our timer yet // so it can configure actions and timeouts - if (!wd_prop.initialized) + if (!wd_service.getInitialized()) { return IPMI_WDOG_CC_NOT_INIT; } |