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 <mbenes@suse.cz>
Reviewed-by: Kamalesh Babulal <kamalesh@linux.vnet.ibm.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
This commit is contained in:
Miroslav Benes 2020-01-13 13:49:07 +01:00 committed by Shuah Khan
parent b54c82e919
commit e1dae517a0

View File

@ -64,7 +64,6 @@ function set_dynamic_debug() {
}
function set_ftrace_enabled() {
local sysctl="$1"
result=$(sysctl kernel.ftrace_enabled="$1" 2>&1 | paste --serial --delimiters=' ')
echo "livepatch: $result" > /dev/kmsg
}