Skip to contentSkip to conversation

tc: Remove unused variable 'res'.

PATCH In review Thomas Jarosch 1 participant 1 message Nov 23, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/2 tc: Remove unused variable 'res'.

Detected by cppcheck.

---
 tc/m_ipt.c    |    2 --
 tc/m_xt_old.c |    2 --
 2 files changed, 0 insertions(+), 4 deletions(-)
tc/m_ipt.c +0 -2
index a73d400..b8655f8 100644
@@ -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)
tc/m_xt_old.c +0 -2
index 3804d7f..7ed7ecc 100644
@@ -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();
 
Signature · 1 line
1.7.6.4