selftests/resctrl: Change initialize_llc_perf() return type to void
authorIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Wed, 15 Feb 2023 13:06:02 +0000 (15:06 +0200)
committerShuah Khan <skhan@linuxfoundation.org>
Mon, 10 Apr 2023 18:20:58 +0000 (12:20 -0600)
commit9ce29d23a13399b44b8e52505464c5d0365ce086
tree5a53bf122517f90bacf170ea263c9b0447d68470
parent5d869d7bb4b8d8f2e5fd207e521419f27f7ad115
selftests/resctrl: Change initialize_llc_perf() return type to void

initialize_llc_perf() unconditionally returns 0.

initialize_llc_perf() performs only memory initialization, none of
which can fail.

Change the return type from int to void to accurately reflect that its
return value doesn't need to be checked. Remove the error checking from
the only callsite.

Co-developed-by: Fenghua Yu <fenghua.yu@intel.com>
Signed-off-by: Fenghua Yu <fenghua.yu@intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Reviewed-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/selftests/resctrl/cache.c