diff mbox

[libnftables] data_reg: delete unreachable code

Message ID 20130603171520.21980.39483.stgit@nfdev.cica.es
State Accepted
Headers show

Commit Message

Arturo Borrero June 3, 2013, 5:15 p.m. UTC
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

Comments

Pablo Neira Ayuso June 5, 2013, 3:06 a.m. UTC | #1
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
diff mbox

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