public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Nick Warne <nick@linicks.net>
To: linux-kernel@vger.kernel.org
Subject: [PATCH] net/core/sysctl_net_core.c  unused variable
Date: Sun, 06 Sep 2015 15:13:23 +0100	[thread overview]
Message-ID: <55EC4A03.905@linicks.net> (raw)

[-- Attachment #1: Type: text/plain, Size: 388 bytes --]

gcc version 4.8.2 (GCC) warns that 'static int one = 1;' is declared but 
not used in file net/core/sysctl_net_core.c.  Reading the file, that is 
the case.  Attached is a patch to remove it.

Signed-off-by:  Nick Warne <nick@linicks.net>

Nick
-- 
Gosh that takes me back... or is it forward?  That's the trouble with
time travel, you never can tell."
		-- Doctor Who "Androids of Tara"

[-- Attachment #2: patch --]
[-- Type: text/plain, Size: 378 bytes --]

--- linux-3.18.21/net/core/sysctl_net_core.c.orig	2015-09-06 15:03:05.066306670 +0100
+++ linux-3.18.21/net/core/sysctl_net_core.c	2015-09-06 15:03:14.501034348 +0100
@@ -23,7 +23,6 @@
 #include <net/pkt_sched.h>
 
 static int zero = 0;
-static int one = 1;
 static int ushort_max = USHRT_MAX;
 static int min_sndbuf = SOCK_MIN_SNDBUF;
 static int min_rcvbuf = SOCK_MIN_RCVBUF;

             reply	other threads:[~2015-09-06 14:21 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-06 14:13 Nick Warne [this message]
2015-09-06 14:52 ` [PATCH] net/core/sysctl_net_core.c unused variable Joe Perches
2015-09-06 15:16   ` Nick Warne
     [not found]     ` <1441553310.28194.44.camel@perches.com>
2015-09-06 15:36       ` Nick Warne
2015-09-06 15:51         ` Joe Perches
2015-09-06 16:08           ` Nick Warne

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=55EC4A03.905@linicks.net \
    --to=nick@linicks.net \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
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