提交 d05db05e 编写于 作者: G Guojia Liao 提交者: Xie XiuQi

net: hns3: fixes some incorrect type in assignment reported by sparse.

driver inclusion
category: bugfix
bugzilla: NA
CVE: NA

This patch fixes some incorrect type in assignment as below:
-warning: cast to restricted __le32

Fixes: 791fa4d77505 ("Fixes byte order issues when printed")

Feature or Bugfix:Bugfix
Signed-off-by: NGuojia Liao <liaoguojia@huawei.com>
Reviewed-by: Nlipeng <lipeng321@huawei.com>
Reviewed-by: NYunsheng Lin <linyunsheng@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 47ae9bba
...@@ -5811,8 +5811,7 @@ static int hclge_del_fd_entry(struct hnae3_handle *handle, ...@@ -5811,8 +5811,7 @@ static int hclge_del_fd_entry(struct hnae3_handle *handle,
if (!hclge_fd_rule_exist(hdev, fs->location)) { if (!hclge_fd_rule_exist(hdev, fs->location)) {
dev_err(&hdev->pdev->dev, dev_err(&hdev->pdev->dev,
"Delete fail, rule %u is inexistent\n", "Delete fail, rule %u is inexistent\n", fs->location);
le32_to_cpu(fs->location));
return -ENOENT; return -ENOENT;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册