[example/custom] Fix coverity issue.
authorMyungJoo Ham <myungjoo.ham@samsung.com>
Tue, 2 Oct 2018 04:14:05 +0000 (13:14 +0900)
committerjaeyun-jung <39614140+jaeyun-jung@users.noreply.github.com>
Tue, 2 Oct 2018 04:56:46 +0000 (13:56 +0900)
Do not check if it's < 0 if it's unsigned.

Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
nnstreamer_example/custom_example_scaler/nnstreamer_customfilter_example_scaler_allocator.c

index 449e75b..b060e11 100644 (file)
@@ -71,15 +71,11 @@ pt_init (const GstTensorFilterProperties * prop)
     gchar **strv = g_strsplit_set (data->property, s, 3);
     if (strv[0] != NULL) {
       data->new_x = (uint32_t) g_ascii_strtoll (strv[0], NULL, 10);
-      if (data->new_x < 0)
-        data->new_x = 0;
     } else {
       data->new_x = 0;
     }
     if (strv[1] != NULL) {
       data->new_y = (uint32_t) g_ascii_strtoll (strv[1], NULL, 10);
-      if (data->new_y < 0)
-        data->new_y = 0;
     } else {
       data->new_y = 0;
     }