Fix coverity Stray semicolon issues 15/225215/1 submit/tizen/20200219.021350
authorTae-Young Chung <ty83.chung@samsung.com>
Tue, 18 Feb 2020 06:35:40 +0000 (15:35 +0900)
committerTae-Young Chung <ty83.chung@samsung.com>
Tue, 18 Feb 2020 06:35:40 +0000 (15:35 +0900)
Change-Id: I8c3a504aaf17bd804d0108263698161275cc916b
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
test/testsuites/inference/inference_test_suite.c

index 64559f26925cfcfb9ef55969322ed2d3e7539dbb..898f161e90fe39fee9f632ea170b108c3e0663df 100644 (file)
@@ -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:
         {