summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatteo Croce <mcroce@redhat.com>2019-06-20 13:52:29 +1000
committerStephen Rothwell <sfr@canb.auug.org.au>2019-06-24 21:11:39 +1000
commit5d20c870b822860bd693414c46fd41d16124d474 (patch)
tree6587aa9be515483ad577c9970ea5cd536c18cc40
parent6305f52a12df35eff9694fe75b40ec1eb3717fa0 (diff)
downloadlinux-next-5d20c870b822860bd693414c46fd41d16124d474.tar.gz
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[] = {