remove redundant code 57/319057/1
authorVibhav Aggarwal <v.aggarwal@samsung.com>
Thu, 5 Oct 2023 08:37:03 +0000 (17:37 +0900)
committerInki Dae <inki.dae@samsung.com>
Tue, 4 Feb 2025 01:36:52 +0000 (10:36 +0900)
[issue type] code cleanup

Remove redundant code. The if condition was redundant
because it would always fail.

Change-Id: I57d5bba6c28acea852297395423abe8add8b6ed7
Signed-off-by: Vibhav Aggarwal <v.aggarwal@samsung.com>
src/inference_engine_common_impl.cpp

index b3ba4eb7c154df44ddff3fe9983575895e9846be..a4fdc51d328f1d390255b077ba007894912ce7f1 100644 (file)
@@ -246,10 +246,6 @@ namespace Common
 
        int InferenceEngineCommon::EnableProfiler(bool enable)
        {
-               if (enable != true && enable != false) {
-                       return INFERENCE_ENGINE_ERROR_INVALID_PARAMETER;
-               }
-
                mUseProfiler = enable;
 
                if (mUseProfiler == true) {