Skip to contentSkip to conversation

data_reg: xml: delete unreachable code in _veredict_xml_parse()

PATCH Applied Arturo Borrero 2 participants 2 messages Jun 8, 2013 netfilter

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 data_reg: xml: delete unreachable code in _veredict_xml_parse()

This code was unreachable.

There was a similar commit fixing a similar code which didn't fix this (414ac29).

---
 src/expr/data_reg.c |    2 --
 1 file changed, 2 deletions(-)
src/expr/data_reg.c +0 -2
index a7511a7..5eb7f38 100644
@@ -76,8 +76,6 @@ static int nft_data_reg_verdict_xml_parse(union nft_data_reg *reg, char *xml)
 
 	mxmlDelete(tree);
 	return 0;
-	errno = EOPNOTSUPP;
-	return -1;
 }
 
 static int nft_data_reg_chain_xml_parse(union nft_data_reg *reg, char *xml)
maintainer Applied
#1 lore raw
Quoted 3 lines · Arturo Borrero

This code was unreachable.

There was a similar commit fixing a similar code which didn't fix this (414ac29).

Applied.