Patchwork [2/2] include: kill unused PLD_* macros

login
register
mail settings
Submitter Florian Westphal
Date June 3, 2013, 9:18 a.m.
Message ID <1370251105-12450-2-git-send-email-fw@strlen.de>
Download mbox | patch
Permalink /patch/248211/
State Accepted
Headers show

Comments

Florian Westphal - June 3, 2013, 9:18 a.m.
Signed-off-by: Florian Westphal <fw@strlen.de>
---
 include/network.h |   12 ------------
 1 files changed, 0 insertions(+), 12 deletions(-)
Pablo Neira - June 5, 2013, 2:42 a.m.
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/include/network.h b/include/network.h
index 41c35af..79745f3 100644
--- a/include/network.h
+++ b/include/network.h
@@ -173,18 +173,6 @@  static inline int between(uint32_t seq1, uint32_t seq2, uint32_t seq3)
 	return seq3 - seq2 >= seq1 - seq2;
 }
 
-#define PLD_NETWORK2HOST(x)						 \
-({									 \
-	x->len = ntohs(x->len);						 \
-	x->query = ntohs(x->query);					 \
-})
-
-#define PLD_HOST2NETWORK(x)						 \
-({									 \
-	x->len = htons(x->len);						 \
-	x->query = htons(x->query);					 \
-})
-
 struct netattr {
 	uint16_t nta_len;
 	uint16_t nta_attr;