From: Matteo Croce <mcroce@redhat•com>
To: Stephen Rothwell <sfr@canb•auug.org.au>,
Andrew Morton <akpm@linux-foundation•org>
Cc: Linux Next Mailing List <linux-next@vger•kernel.org>,
Linux Kernel Mailing List <linux-kernel@vger•kernel.org>
Subject: [PATCH] tipc: remove two unused variables
Date: Thu, 30 May 2019 11:19:52 +0200 [thread overview]
Message-ID: <20190530091952.4108-1-mcroce@redhat.com> (raw)
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
reply other threads:[~2019-05-30 9:19 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190530091952.4108-1-mcroce@redhat.com \
--to=mcroce@redhat$(echo .)com \
--cc=akpm@linux-foundation$(echo .)org \
--cc=linux-kernel@vger$(echo .)kernel.org \
--cc=linux-next@vger$(echo .)kernel.org \
--cc=sfr@canb$(echo .)auug.org.au \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox