Skip to content

Commit e1dae51

Browse files
mirabshuahkh
authored andcommitted
selftests/livepatch: Remove unused local variable in set_ftrace_enabled()
set_ftrace_enabled() contains unused local variable "sysctl". Remove it. Signed-off-by: Miroslav Benes <[email protected]> Reviewed-by: Kamalesh Babulal <[email protected]> Signed-off-by: Shuah Khan <[email protected]>
1 parent b54c82e commit e1dae51

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

tools/testing/selftests/livepatch/functions.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ function set_dynamic_debug() {
6464
}
6565

6666
function set_ftrace_enabled() {
67-
local sysctl="$1"
6867
result=$(sysctl kernel.ftrace_enabled="$1" 2>&1 | paste --serial --delimiters=' ')
6968
echo "livepatch: $result" > /dev/kmsg
7069
}

0 commit comments

Comments
 (0)