From: Inki Dae Date: Thu, 7 May 2020 09:05:57 +0000 (+0900) Subject: Fix UNREACHABLE_CODE issues X-Git-Tag: submit/tizen/20200508.021019~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=db403ba582653c84c62fbec2d181e9da2601c3e2;p=platform%2Fcore%2Fmultimedia%2Finference-engine-interface.git Fix UNREACHABLE_CODE issues Change-Id: Idb729c0e74c21e60285df6dd1ffd1a0f9f217aeb Signed-off-by: Inki Dae --- 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; }