]> Git Repo - linux.git/commit
selftests/resctrl: Remove unnecessary startptr global from fill_buf
authorIlpo Järvinen <[email protected]>
Mon, 17 Jul 2023 13:15:01 +0000 (16:15 +0300)
committerShuah Khan <[email protected]>
Tue, 25 Jul 2023 14:53:36 +0000 (08:53 -0600)
commit5e3e4f1a03f075bd49104ea4c998c20649a49491
tree2456bf9cd4a85f1619c98f6c849d6572b3ce6115
parent326baed260e2e4f2df18d42d41b261740c6b8c04
selftests/resctrl: Remove unnecessary startptr global from fill_buf

fill_buf stores buffer pointer into global variable startptr that is
only used in fill_cache().

Remove startptr as global variable, the local variable in fill_cache()
is enough to keep the pointer.

Signed-off-by: Ilpo Järvinen <[email protected]>
Reviewed-by: Reinette Chatre <[email protected]>
Tested-by: Babu Moger <[email protected]>
Tested-by: Shaopeng Tan (Fujitsu) <[email protected]>
Signed-off-by: Shuah Khan <[email protected]>
tools/testing/selftests/resctrl/fill_buf.c
This page took 0.050515 seconds and 4 git commands to generate.