summaryrefslogtreecommitdiffstats
path: root/tools/testing
diff options
context:
space:
mode:
authorMiroslav Benes <mbenes@suse.cz>2020-01-13 13:49:07 +0100
committerShuah Khan <skhan@linuxfoundation.org>2020-01-16 21:05:49 +0100
commite1dae517a0f5a182625204ff4eb0b6aefc5bc74d (patch)
tree66aeea6dcc7d228338862cede96a258255d0725e /tools/testing
parentselftests/livepatch: Replace set_dynamic_debug() with setup_config() in README (diff)
downloadlinux-e1dae517a0f5a182625204ff4eb0b6aefc5bc74d.tar.xz
linux-e1dae517a0f5a182625204ff4eb0b6aefc5bc74d.zip
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>
Diffstat (limited to 'tools/testing')
-rw-r--r--tools/testing/selftests/livepatch/functions.sh1
1 files changed, 0 insertions, 1 deletions
diff --git a/tools/testing/selftests/livepatch/functions.sh b/tools/testing/selftests/livepatch/functions.sh
index a6e3d5517a6f..2aab9791791d 100644
--- a/tools/testing/selftests/livepatch/functions.sh
+++ b/tools/testing/selftests/livepatch/functions.sh
@@ -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
}