hash: fix return of bulk lookup
The __rte_hash_lookup_bulk() function returns void, and therefore
should not return with an expression. This commit fixes the following
compiler warning when attempting to compile with "-pedantic -std=c11".
warning: ISO C forbids ‘return’ with expression, in function
returning void [-Wpedantic]
Fixes: 9eca8bd7a6
("hash: separate lock-free and r/w lock lookup")
Cc: stable@dpdk.org
Signed-off-by: Jeff Shaw <jeffrey.b.shaw@intel.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
This commit is contained in:
parent
e6c6dc0f96
commit
0f48ca429b
@ -2022,11 +2022,11 @@ __rte_hash_lookup_bulk(const struct rte_hash *h, const void **keys,
|
||||
uint64_t *hit_mask, void *data[])
|
||||
{
|
||||
if (h->readwrite_concur_lf_support)
|
||||
return __rte_hash_lookup_bulk_lf(h, keys, num_keys,
|
||||
positions, hit_mask, data);
|
||||
__rte_hash_lookup_bulk_lf(h, keys, num_keys, positions,
|
||||
hit_mask, data);
|
||||
else
|
||||
return __rte_hash_lookup_bulk_l(h, keys, num_keys,
|
||||
positions, hit_mask, data);
|
||||
__rte_hash_lookup_bulk_l(h, keys, num_keys, positions,
|
||||
hit_mask, data);
|
||||
}
|
||||
|
||||
int
|
||||
|
Loading…
Reference in New Issue
Block a user