From: Thomas Jarosch <thomas.jarosch@intra2net•com>
To: netdev@vger•kernel.org
Cc: shemminger@vyatta•com
Subject: [iproute2 PATCH 1/2] tc: Remove unused variable 'res'.
Date: Wed, 23 Nov 2011 22:13:23 +0100 [thread overview]
Message-ID: <4ECD61F3.4040504@intra2net.com> (raw)
Detected by cppcheck.
Signed-off-by: Thomas Jarosch <thomas.jarosch@intra2net•com>
---
tc/m_ipt.c | 2 --
tc/m_xt_old.c | 2 --
2 files changed, 0 insertions(+), 4 deletions(-)
diff --git a/tc/m_ipt.c b/tc/m_ipt.c
index a73d400..b8655f8 100644
--- a/tc/m_ipt.c
+++ b/tc/m_ipt.c
@@ -396,11 +396,9 @@ static int parse_ipt(struct action_util *a,int *argc_p,
char **argv = *argv_p;
int argc = 0, iargc = 0;
char k[16];
- int res = -1;
int size = 0;
int iok = 0, ok = 0;
__u32 hook = 0, index = 0;
- res = 0;
lib_dir = getenv("IPTABLES_LIB_DIR");
if (!lib_dir)
diff --git a/tc/m_xt_old.c b/tc/m_xt_old.c
index 3804d7f..7ed7ecc 100644
--- a/tc/m_xt_old.c
+++ b/tc/m_xt_old.c
@@ -215,11 +215,9 @@ static int parse_ipt(struct action_util *a,int *argc_p,
char **argv = *argv_p;
int argc = 0, iargc = 0;
char k[16];
- int res = -1;
int size = 0;
int iok = 0, ok = 0;
__u32 hook = 0, index = 0;
- res = 0;
set_lib_dir();
--
1.7.6.4
reply other threads:[~2011-11-23 21:13 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=4ECD61F3.4040504@intra2net.com \
--to=thomas.jarosch@intra2net$(echo .)com \
--cc=netdev@vger$(echo .)kernel.org \
--cc=shemminger@vyatta$(echo .)com \
/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