[2/2] selftests/livepatch: Remove unused local variable in set_ftrace_enabled()
diff mbox series

Message ID 20200113124907.11086-3-mbenes@suse.cz
State Mainlined
Commit e1dae517a0f5a182625204ff4eb0b6aefc5bc74d
Headers show
Series
  • selftests/livepatch: Trivial cleanups
Related show

Commit Message

Miroslav Benes Jan. 13, 2020, 12:49 p.m. UTC
set_ftrace_enabled() contains unused local variable "sysctl". Remove it.

Signed-off-by: Miroslav Benes <mbenes@suse.cz>
---
 tools/testing/selftests/livepatch/functions.sh | 1 -
 1 file changed, 1 deletion(-)

Comments

Kamalesh Babulal Jan. 13, 2020, 1 p.m. UTC | #1
On 1/13/20 6:19 PM, Miroslav Benes wrote:
> 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>

Patch
diff mbox series

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
 }