summaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/resctrl/mbm_test.c
diff options
context:
space:
mode:
authorIlpo Järvinen <ilpo.jarvinen@linux.intel.com>2023-02-15 15:05:58 +0200
committerShuah Khan <skhan@linuxfoundation.org>2023-04-10 12:20:35 -0600
commitc90b3b588e369c20087699316259fa5ebbb16f2d (patch)
treec6746556ab5f4eba378565f77c8c852c3750b527 /tools/testing/selftests/resctrl/mbm_test.c
parent22a8be280383812235131dda18a8212a59fadd2d (diff)
downloadlinux-stable-c90b3b588e369c20087699316259fa5ebbb16f2d.tar.gz
linux-stable-c90b3b588e369c20087699316259fa5ebbb16f2d.tar.bz2
linux-stable-c90b3b588e369c20087699316259fa5ebbb16f2d.zip
selftests/resctrl: Move ->setup() call outside of test specific branches
resctrl_val() function is called only by MBM, MBA, and CMT tests which means the else branch is never used. Both test branches call param->setup(). Remove the unused else branch and place the ->setup() call outside of the test specific branches reducing code duplication. 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>
Diffstat (limited to 'tools/testing/selftests/resctrl/mbm_test.c')
0 files changed, 0 insertions, 0 deletions