* [PATCH] tipc: remove two unused variables
@ 2019-05-30 9:19 Matteo Croce
0 siblings, 0 replies; only message in thread
From: Matteo Croce @ 2019-05-30 9:19 UTC (permalink / raw)
To: Stephen Rothwell, Andrew Morton
Cc: Linux Next Mailing List, Linux Kernel Mailing List
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")
Reported-by: Stephen Rothwell <sfr@canb•auug.org.au>
Signed-off-by: Matteo Croce <mcroce@redhat•com>
---
net/tipc/sysctl.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/net/tipc/sysctl.c b/net/tipc/sysctl.c
index 9df82a573aa7..180574ff3a3f 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[] = {
--
2.21.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2019-05-30 9:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-05-30 9:19 [PATCH] tipc: remove two unused variables Matteo Croce
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox