aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_timer.c
diff options
context:
space:
mode:
authorIlpo Järvinen <[email protected]>2023-10-02 12:48:11 +0300
committerShuah Khan <[email protected]>2023-10-13 14:54:27 -0600
commitd56e5da0e0f557a206bace16bbbdad00a5800e34 (patch)
treeea0a355d97aee7bfe65df31d3739c532ee12ff73 /net/lapb/lapb_timer.c
parent3a1e4a91aa454a1c589a9824d54179fdbfccde45 (diff)
selftests/resctrl: Refactor feature check to use resource and feature name
Feature check in validate_resctrl_feature_request() takes in the test name string and maps that to what to check per test. Pass resource and feature names to validate_resctrl_feature_request() directly rather than deriving them from the test name inside the function which makes the feature check easier to extend for new test cases. Use !! in the return statement to make the boolean conversion more obvious even if it is not strictly necessary from correctness point of view (to avoid it looking like the function is returning a freed pointer). Signed-off-by: Ilpo Järvinen <[email protected]> Tested-by: Shaopeng Tan <[email protected]> Reviewed-by: Reinette Chatre <[email protected]> Reviewed-by: Shaopeng Tan <[email protected]> Cc: <[email protected]> # selftests/resctrl: Remove duplicate feature check from CMT test Cc: <[email protected]> # selftests/resctrl: Move _GNU_SOURCE define into Makefile Signed-off-by: Shuah Khan <[email protected]>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions