Relicense common/smp.c common/smp.h to MIT
[lttng-ust.git] / src / common / smp.c
index 88d66a40a3c0f049e34c46a290af11b4b5fea454..36967ccc5df829f0160b1cd659544fa4fa65851f 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * SPDX-License-Identifier: LGPL-2.1-only
+ * SPDX-License-Identifier: MIT
  *
  * Copyright (C) 2011-2012 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
  * Copyright (C) 2019 Michael Jeanson <mjeanson@efficios.com>
@@ -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;
 
This page took 0.023618 seconds and 4 git commands to generate.