From 9934022ade4d976e3c5937c92fb36f38acaa7e86 Mon Sep 17 00:00:00 2001 From: Tae-Young Chung Date: Tue, 18 Feb 2020 15:35:40 +0900 Subject: [PATCH] Fix coverity Stray semicolon issues Change-Id: I8c3a504aaf17bd804d0108263698161275cc916b Signed-off-by: Tae-Young Chung --- test/testsuites/inference/inference_test_suite.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/testsuites/inference/inference_test_suite.c b/test/testsuites/inference/inference_test_suite.c index 64559f2..898f161 100644 --- a/test/testsuites/inference/inference_test_suite.c +++ b/test/testsuites/inference/inference_test_suite.c @@ -848,7 +848,7 @@ int perform_image_classification() if (mvSource) { err = mv_destroy_source(mvSource); - if (err != MEDIA_VISION_ERROR_NONE); + if (err != MEDIA_VISION_ERROR_NONE) printf("Fail to destroy mvSource [err:%i]\n", err); mvSource = NULL; } @@ -1017,7 +1017,7 @@ int perform_object_detection() { if (mvSource) { int err2 = mv_destroy_source(mvSource); - if (err2 != MEDIA_VISION_ERROR_NONE); + if (err2 != MEDIA_VISION_ERROR_NONE) printf("Fail to destroy mvSource\n"); mvSource = NULL; } @@ -1285,7 +1285,7 @@ int perform_face_detection() { if (mvSource) { int err2 = mv_destroy_source(mvSource); - if (err2 != MEDIA_VISION_ERROR_NONE); + if (err2 != MEDIA_VISION_ERROR_NONE) printf("Fail to destroy mvSource\n"); mvSource = NULL; } @@ -1545,7 +1545,7 @@ int perform_facial_landmark_detection() { if (mvSource) { int err2 = mv_destroy_source(mvSource); - if (err2 != MEDIA_VISION_ERROR_NONE); + if (err2 != MEDIA_VISION_ERROR_NONE) printf("Fail to destroy mvSource\n"); mvSource = NULL; } @@ -1666,12 +1666,12 @@ int main() const char *names[5] = { "Image Classification", "Object Detection", "Face Detection", - "Facial LandmarkDetection" + "Facial LandmarkDetection," "Exit"}; int err = MEDIA_VISION_ERROR_NONE; while (sel_opt == 0) { - sel_opt = show_menu("Select Action:", options, names, 4); + sel_opt = show_menu("Select Action:", options, names, 5); switch (sel_opt) { case 1: { -- 2.7.4