summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatteo Croce <mcroce@redhat.com>2019-06-26 09:49:45 +1000
committerStephen Rothwell <sfr@canb.auug.org.au>2019-07-03 20:47:14 +1000
commit7d315791f18828d6e0a147e86caa64d17be55721 (patch)
treec942eb77041cf4d130264f7a4e8b053763e28b50
parent9e77527748e4e93055400e4d600511ed0a32e64e (diff)
downloadlinux-7d315791f18828d6e0a147e86caa64d17be55721.tar.gz
linux-7d315791f18828d6e0a147e86caa64d17be55721.tar.xz
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; | ^~~~ Link: http://lkml.kernel.org/r/20190530091952.4108-1-mcroce@redhat.com Signed-off-by: Matteo Croce <mcroce@redhat.com> Reported-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
-rw-r--r--net/tipc/sysctl.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/net/tipc/sysctl.c b/net/tipc/sysctl.c
index 0cb92556fbb4..6159d327db76 100644
--- a/net/tipc/sysctl.c
+++ b/net/tipc/sysctl.c
@@ -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[] = {