net/hns3: remove non re-entrant strerror call

This patch delete strerror invoke which was non re-entrant.

Signed-off-by: Chengwen Feng <fengchengwen@huawei.com>
Acked-by: Min Hu (Connor) <humin29@huawei.com>
This commit is contained in:
Chengwen Feng 2022-01-22 09:51:39 +08:00 committed by Ferruh Yigit
parent 3340aa9f50
commit 2a1e7c4782

View File

@ -919,8 +919,7 @@ static int hns3_insert_fdir_filter(struct hns3_hw *hw,
sig = rte_hash_crc(key, sizeof(*key), 0);
ret = rte_hash_add_key_with_hash(fdir_info->hash_handle, key, sig);
if (ret < 0) {
hns3_err(hw, "Hash table full? err:%d(%s)!", ret,
strerror(-ret));
hns3_err(hw, "Hash table full? err:%d!", ret);
return ret;
}