]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
rtla: Fix parse_cpu_set() return value documentation
authorWander Lairson Costa <wander@redhat.com>
Tue, 6 Jan 2026 11:49:53 +0000 (08:49 -0300)
committerTomas Glozar <tglozar@redhat.com>
Wed, 7 Jan 2026 14:57:56 +0000 (15:57 +0100)
commitfb8b8183208d8efe824e8d2c73fb1ab5ad1191fd
tree94579f52d985051313f2d0ad365d3cd9da63b98c
parent33e3c807ab22bd4002640c8fe47fa30fd4f44ca0
rtla: Fix parse_cpu_set() return value documentation

Correct the return value documentation for parse_cpu_set() function
in utils.c. The comment incorrectly stated that the function returns
1 on success and 0 on failure, but the actual implementation returns
0 on success and 1 on failure, following the common error-on-nonzero
convention used throughout the codebase.

This documentation fix ensures that developers reading the code
understand the correct return value semantics and prevents potential
misuse of the function's return value in conditional checks.

Signed-off-by: Wander Lairson Costa <wander@redhat.com>
Link: https://lore.kernel.org/r/20260106133655.249887-18-wander@redhat.com
Signed-off-by: Tomas Glozar <tglozar@redhat.com>
tools/tracing/rtla/src/utils.c