set CSR_STATE_ENABLE as a default value 63/73563/1
authorDongsun Lee <ds73.lee@samsung.com>
Wed, 8 Jun 2016 13:25:49 +0000 (22:25 +0900)
committerDongsun Lee <ds73.lee@samsung.com>
Wed, 8 Jun 2016 13:25:49 +0000 (22:25 +0900)
Change-Id: I800d2ab47eb60c4a6f79b279f6b1cbd16a372339
Signed-off-by: Dongsun Lee <ds73.lee@samsung.com>
src/framework/db/manager.cpp

index 5ef100d..d547518 100644 (file)
@@ -188,8 +188,7 @@ csr_state_e Manager::getEngineState(csr_engine_id_e id)
                }
        }
 
-       return (this->m_stateMap.count(id) == 0) ? static_cast<csr_state_e>(-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)