Skip to contentSkip to conversation

tipc: remove two unused variables

PATCH New Matteo Croce 1 participant 1 message May 30, 2019

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tipc: remove two unused variables

Remove two variables which are unused after merging 6a33853c5773 and generate the following warnings:

CC [M] net/tipc/sysctl.o
net/tipc/sysctl.c:42:12: warning: ‘one’ defined but not used [-Wunused-variable]
42 | static int one = 1;
| ^~~
net/tipc/sysctl.c:41:12: warning: ‘zero’ defined but not used [-Wunused-variable]
41 | static int zero;
| ^~~~

Fixes 6a33853c5773 ("proc/sysctl: add shared variables for range check")
---
 net/tipc/sysctl.c | 2 --
 1 file changed, 2 deletions(-)
net/tipc/sysctl.c +0 -2
index 9df82a573aa7..180574ff3a3f 100644
@@ -38,8 +38,6 @@
 
 #include <linux/sysctl.h>
 
-static int zero;
-static int one = 1;
 static struct ctl_table_header *tipc_ctl_hdr;
 
 static struct ctl_table tipc_table[] = {
Signature · 1 line
2.21.0