From 578e6a51ad8b778794409974cfd4b3d12fe6f297 Mon Sep 17 00:00:00 2001 From: Ben Hutchings Date: Tue, 3 Jan 2012 20:21:45 +0000 Subject: rxclass: Use RX_CLS_LOC_{ANY,SPECIAL} in place of RX_CLS_LOC_UNSPEC The macro RX_CLS_LOC_ANY is now defined in ethtool(-copy).h with the same intended semantics and same value as RX_CLS_LOC_UNSPEC. Change some equality tests to check for the flag RX_CLS_LOC_SPECIAL, to allow for future support of other special location value. Remove the special case for RX_CLS_LOC_UNSPEC in rxclass_print_nfc_rule(), since it is dead code. Signed-off-by: Ben Hutchings --- internal.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'internal.h') diff --git a/internal.h b/internal.h index cb126b3..867c0ea 100644 --- a/internal.h +++ b/internal.h @@ -86,8 +86,6 @@ static inline int test_bit(unsigned int nr, const unsigned long *addr) #define SIOCETHTOOL 0x8946 #endif -#define RX_CLS_LOC_UNSPEC 0xffffffffUL - /* Context for sub-commands */ struct cmd_context { const char *devname; /* net device name */ -- cgit v1.2.1