Fix wrong return value (#436)
author장지섭/동작제어Lab(SR)/Engineer/삼성전자 <jiseob.jang@samsung.com>
Wed, 4 Apr 2018 08:42:00 +0000 (17:42 +0900)
committer최형규/동작제어Lab(SR)/Senior Engineer/삼성전자 <hk0110.choi@samsung.com>
Wed, 4 Apr 2018 08:42:00 +0000 (17:42 +0900)
This commit fixes wrong return value.

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
src/runtime/ref/nn/runtime/Memory.cpp

index bde3f9e..65daf9d 100644 (file)
@@ -74,10 +74,9 @@ int Memory::create(uint32_t size) {
         LOG(ERROR) << "Memory::create failed";
         return ANEURALNETWORKS_OP_FAILED;
     }
+#endif // TODO-NNRT
 
     return ANEURALNETWORKS_NO_ERROR;
-#endif // TODO-NNRT
-    return ANEURALNETWORKS_OP_FAILED;
 }
 
 bool Memory::validateSize(uint32_t offset, uint32_t length) const {