Skip to contentSkip to conversation

libxt_recent: remove unused variable

PATCH Applied Eldad Zack 2 participants 2 messages Jul 4, 2012 – Jul 14, 2012 netfilter

lore
Share & tools
lore

Eldad Zack

author
#0 lore raw

PATCH 1/1 libxt_recent: remove unused variable

The info variable is assigned but never read in recent_check().

---
 extensions/libxt_recent.c |    2 --
 1 file changed, 2 deletions(-)
extensions/libxt_recent.c +0 -2
index c7dce4e..3dcb41d 100644
@@ -131,8 +131,6 @@ static void recent_parse(struct xt_option_call *cb)
 
 static void recent_check(struct xt_fcheck_call *cb)
 {
-	struct xt_recent_mtinfo *info = cb->data;
-
 	if (!(cb->xflags & F_ANY_OP))
 		xtables_error(PARAMETER_PROBLEM,
 			"recent: you must specify one of `--set', `--rcheck' "
Signature · 1 line
1.7.10
maintainer Applied
#1 lore raw
Quoted 1 line · Eldad Zack

The info variable is assigned but never read in recent_check().

Applied, thanks Eldad.