From db403ba582653c84c62fbec2d181e9da2601c3e2 Mon Sep 17 00:00:00 2001 From: Inki Dae Date: Thu, 7 May 2020 18:05:57 +0900 Subject: [PATCH] Fix UNREACHABLE_CODE issues Change-Id: Idb729c0e74c21e60285df6dd1ffd1a0f9f217aeb Signed-off-by: Inki Dae --- src/inference_engine_profiler.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/inference_engine_profiler.cpp b/src/inference_engine_profiler.cpp index c9427a1..b4a9c2e 100644 --- a/src/inference_engine_profiler.cpp +++ b/src/inference_engine_profiler.cpp @@ -133,7 +133,7 @@ void InferenceEngineProfiler::GetMemoryUsage(MemoryData &data) void InferenceEngineProfiler::Start(const unsigned int type) { - if (IE_PROFILER_MIN >= type && IE_PROFILER_MAX <= type) { + if (IE_PROFILER_MIN >= type || IE_PROFILER_MAX <= type) { LOGE("Invalid profiler type."); return; } @@ -152,7 +152,7 @@ void InferenceEngineProfiler::Start(const unsigned int type) void InferenceEngineProfiler::Stop(const unsigned int type, const char *func_name) { - if (IE_PROFILER_MIN >= type && IE_PROFILER_MAX <= type) { + if (IE_PROFILER_MIN >= type || IE_PROFILER_MAX <= type) { LOGE("Invalid profiler type."); return; } @@ -235,7 +235,7 @@ void InferenceEngineProfiler::DumpToFile(const unsigned int dump_type, std::stri void InferenceEngineProfiler::Dump(const unsigned int dump_type) { - if (IE_PROFILER_DUMP_MIN >= dump_type && IE_PROFILER_DUMP_MAX <= dump_type) { + if (IE_PROFILER_DUMP_MIN >= dump_type || IE_PROFILER_DUMP_MAX <= dump_type) { LOGE("Invalid profiler dump type."); return; } -- 2.34.1