From 22ab86472e5e5f1dab8ed600d7d8e1d29461891f Mon Sep 17 00:00:00 2001 From: MyungJoo Ham Date: Tue, 2 Oct 2018 13:14:05 +0900 Subject: [PATCH] [example/custom] Fix coverity issue. Do not check if it's < 0 if it's unsigned. Signed-off-by: MyungJoo Ham --- .../nnstreamer_customfilter_example_scaler_allocator.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/nnstreamer_example/custom_example_scaler/nnstreamer_customfilter_example_scaler_allocator.c b/nnstreamer_example/custom_example_scaler/nnstreamer_customfilter_example_scaler_allocator.c index 449e75b..b060e11 100644 --- a/nnstreamer_example/custom_example_scaler/nnstreamer_customfilter_example_scaler_allocator.c +++ b/nnstreamer_example/custom_example_scaler/nnstreamer_customfilter_example_scaler_allocator.c @@ -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; } -- 2.7.4