aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_subr.c
diff options
context:
space:
mode:
authorIlpo Järvinen <[email protected]>2023-12-15 17:04:48 +0200
committerShuah Khan <[email protected]>2024-02-13 13:56:43 -0700
commitc90fba60f274b182f8b4df0f5a5dd23a2457f4a3 (patch)
tree81e7dfe61cf36e303183bf4f6eb1c4f3ce16a7c1 /net/lapb/lapb_subr.c
parentcc8ff7f5c85c076297b18fb9f6d45ec5569d3d44 (diff)
selftests/resctrl: Return -1 instead of errno on error
A number of functions in the resctrl selftests return errno. It is problematic because errno is positive which is often counterintuitive. Also, every site returning errno prints the error message already with ksft_perror() so there is not much added value in returning the precise error code. Simply convert all places returning errno to return -1 that is typical userspace error code in case of failures. While at it, improve resctrl_val() comment to state that 0 means the test was run (either pass or fail). Signed-off-by: Ilpo Järvinen <[email protected]> Reviewed-by: Reinette Chatre <[email protected]> Signed-off-by: Shuah Khan <[email protected]>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions