Skip to content

Commit

Permalink
hash: remove some dead code
Browse files Browse the repository at this point in the history
[ upstream commit 25e3fe362b3ad7484750eb7134bfca8e3fab5703 ]

This macro is not used.

Fixes: 769b2de ("hash: implement RCU resources reclamation")

Signed-off-by: David Marchand <david.marchand@redhat.com>
Reviewed-by: Stephen Hemminger <stephen@networkplumber.org>
Reviewed-by: Tyler Retzlaff <roretzla@linux.microsoft.com>
Reviewed-by: Ruifeng Wang <ruifeng.wang@arm.com>
  • Loading branch information
david-marchand authored and bluca committed Feb 22, 2024
1 parent caf0f5d commit f66284d
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions lib/hash/rte_cuckoo_hash.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,6 @@
#define RETURN_IF_TRUE(cond, retval)
#endif

#if defined(RTE_LIBRTE_HASH_DEBUG)
#define ERR_IF_TRUE(cond, fmt, args...) do { \
if (cond) { \
RTE_LOG(ERR, HASH, fmt, ##args); \
return; \
} \
} while (0)
#else
#define ERR_IF_TRUE(cond, fmt, args...)
#endif

#include <rte_hash_crc.h>
#include <rte_jhash.h>

Expand Down

0 comments on commit f66284d

Please sign in to comment.