[COVERITY] remove unreachec code accepted/tizen/unified/20220330.021238 submit/tizen/20220325.053530
authorjijoong.moon <jijoong.moon@samsung.com>
Fri, 25 Mar 2022 02:51:40 +0000 (11:51 +0900)
committerJijoong Moon <jijoong.moon@samsung.com>
Fri, 25 Mar 2022 05:31:03 +0000 (14:31 +0900)
This patch remove unreachable code

**Self evaluation:**
1. Build test:  [X]Passed [ ]Failed [ ]Skipped
2. Run test:  [X]Passed [ ]Failed [ ]Skipped

Signed-off-by: jijoong.moon <jijoong.moon@samsung.com>
nntrainer/tensor/manager.cpp

index 4a88081..68a5b33 100644 (file)
@@ -186,8 +186,6 @@ static Tensor *requestTensor_(const TensorSpecV2 &spec,
     throw std::logic_error("requestTensor_ should not reach here");
   }
 
-  throw std::logic_error("requestTensor_ should not reach here");
-
   return nullptr;
 }