Patchwork [libnftables] data_reg: delete unreachable code

login
register
mail settings
Submitter Arturo Borrero
Date June 3, 2013, 5:15 p.m.
Message ID <20130603171520.21980.39483.stgit@nfdev.cica.es>
Download mbox | patch
Permalink /patch/248359/
State Accepted
Headers show

Comments

Arturo Borrero - June 3, 2013, 5:15 p.m.
The deleted code is never executed, thus junk. Introduced by me in previous commit.

Signed-off-by: Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com>
---
 src/expr/data_reg.c |    2 --
 1 file changed, 2 deletions(-)


--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Pablo Neira - June 5, 2013, 3:06 a.m.
On Mon, Jun 03, 2013 at 07:15:20PM +0200, Arturo Borrero wrote:
> The deleted code is never executed, thus junk. Introduced by me in previous commit.

Applied, thanks.
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch

diff --git a/src/expr/data_reg.c b/src/expr/data_reg.c
index 12adc18..74ebe76 100644
--- a/src/expr/data_reg.c
+++ b/src/expr/data_reg.c
@@ -209,8 +209,6 @@  static int nft_data_reg_value_xml_parse(union nft_data_reg *reg, char *xml)
 
 	mxmlDelete(tree);
 	return 0;
-	errno = EOPNOTSUPP;
-	return -1;
 }
 #endif