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:
parent
3340aa9f50
commit
2a1e7c4782
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user