X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Fsmp.c;h=72df6d6df2f1d66271deb88f5c2f894ef2077bf6;hb=6f09d4ea6f7e38b16dcf92474d3f7a23583d4992;hp=88d66a40a3c0f049e34c46a290af11b4b5fea454;hpb=f04f60a5f613b5a850dbe0ee4e983f21803db1ed;p=lttng-ust.git diff --git a/src/common/smp.c b/src/common/smp.c index 88d66a40..72df6d6d 100644 --- a/src/common/smp.c +++ b/src/common/smp.c @@ -215,10 +215,6 @@ int get_max_cpuid_from_mask(const char *pmask, size_t len) cpu_index = strtoul(&pmask[i], &endptr, 10); - /* - * If we read a CPU index, increment it by one to return a number of - * CPUs. - */ if ((&pmask[i] != endptr) && (cpu_index < INT_MAX)) return (int) cpu_index;