From 3ebf01af6e9122de72d44b2187d7a3e3a6f8aaa4 Mon Sep 17 00:00:00 2001 From: Dongsun Lee Date: Wed, 8 Jun 2016 22:25:49 +0900 Subject: [PATCH] set CSR_STATE_ENABLE as a default value Change-Id: I800d2ab47eb60c4a6f79b279f6b1cbd16a372339 Signed-off-by: Dongsun Lee --- src/framework/db/manager.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/framework/db/manager.cpp b/src/framework/db/manager.cpp index 5ef100d..d547518 100644 --- a/src/framework/db/manager.cpp +++ b/src/framework/db/manager.cpp @@ -188,8 +188,7 @@ csr_state_e Manager::getEngineState(csr_engine_id_e id) } } - return (this->m_stateMap.count(id) == 0) ? static_cast(-1) : - this->m_stateMap[id]; + return (this->m_stateMap.count(id) == 0) ? CSR_STATE_ENABLE : this->m_stateMap[id]; } void Manager::setEngineState(csr_engine_id_e id, csr_state_e state) -- 2.7.4