From: Jérémie Galarneau Date: Mon, 1 Aug 2016 19:27:33 +0000 (-0400) Subject: Clean-up: remove negative check against unsigned value X-Git-Tag: v2.9.0-rc1~77 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=89e06fb53862e546351ad86f09bb8b2a12632e3a;p=lttng-tools.git Clean-up: remove negative check against unsigned value Reported-by Coverity Scan: CID 1360536 (#1 of 1): Unsigned compared against 0 (NO_EFFECT) Signed-off-by: Jérémie Galarneau --- diff --git a/src/common/defaults.c b/src/common/defaults.c index a39f1885c..3bb42280f 100644 --- a/src/common/defaults.c +++ b/src/common/defaults.c @@ -117,7 +117,7 @@ static void __attribute__((constructor)) init_default_pthread_attr(void) selected_ss = DEFAULT_LTTNG_THREAD_STACK_SIZE; } - if (rlim.rlim_max >= 0 && selected_ss > rlim.rlim_max) { + if (rlim.rlim_max > 0 && selected_ss > rlim.rlim_max) { WARN("Your system's stack size restrictions (%zu bytes) may be too low for the LTTng daemons to function properly, please set the stack size limit to at leat %zu bytes to ensure reliable operation", (size_t) rlim.rlim_max, (size_t) DEFAULT_LTTNG_THREAD_STACK_SIZE); selected_ss = (size_t) rlim.rlim_max;