Commit 322cb97c authored by Huazhong Tan's avatar Huazhong Tan Committed by David S. Miller

net: hns3: remove redundant print on ENOMEM

All kmalloc-based functions print enough information on failures.
So this patch removes the log in hclge_get_dfx_reg() when returns
ENOMEM.
Signed-off-by: default avatarHuazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent e3105329
...@@ -10318,10 +10318,8 @@ static int hclge_get_dfx_reg(struct hclge_dev *hdev, void *data) ...@@ -10318,10 +10318,8 @@ static int hclge_get_dfx_reg(struct hclge_dev *hdev, void *data)
buf_len = sizeof(*desc_src) * bd_num_max; buf_len = sizeof(*desc_src) * bd_num_max;
desc_src = kzalloc(buf_len, GFP_KERNEL); desc_src = kzalloc(buf_len, GFP_KERNEL);
if (!desc_src) { if (!desc_src)
dev_err(&hdev->pdev->dev, "%s kzalloc failed\n", __func__);
return -ENOMEM; return -ENOMEM;
}
for (i = 0; i < dfx_reg_type_num; i++) { for (i = 0; i < dfx_reg_type_num; i++) {
bd_num = bd_num_list[i]; bd_num = bd_num_list[i];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment