1 Star 0 Fork 14

hz_wangfuqiang/kae_driver

forked from src-openEuler/kae_driver 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
fix-value-not-ignored-as-it-ought-to-be.patch 1.58 KB
一键复制 编辑 原始数据 按行查看 历史
wang_yue111 提交于 2020-11-11 17:33 . fix kae_driver build error
From 41654427d727cdc7e5f63ed148265054d530998b Mon Sep 17 00:00:00 2001
From: wang_yue111 <[email protected]>
Date: Wed, 11 Nov 2020 15:15:21 +0800
Subject: [PATCH] fix value not ignored as itought to be
---
kae_driver/hisilicon/rde/rde_main.c | 10 +++-------
1 file changed, 3 insertions(+), 7 deletions(-)
diff --git a/kae_driver/hisilicon/rde/rde_main.c b/KAEdriver-1.3.9/kae_driver/hisilicon/rde/rde_main.c
index bdc4c55..f900369 100644
--- a/kae_driver/hisilicon/rde/rde_main.c
+++ b/kae_driver/hisilicon/rde/rde_main.c
@@ -479,7 +479,7 @@ static int hisi_rde_chn_debug_init(struct hisi_qm *qm)
{
struct device *dev = &qm->pdev->dev;
struct debugfs_regset32 *regset, *regset_ooo;
- struct dentry *tmp_d, *tmp;
+ struct dentry *tmp_d;
char buf[HRDE_DBGFS_VAL_MAX_LEN];
int ret;
@@ -497,9 +497,7 @@ static int hisi_rde_chn_debug_init(struct hisi_qm *qm)
regset->regs = hrde_dfx_regs;
regset->nregs = ARRAY_SIZE(hrde_dfx_regs);
regset->base = qm->io_base;
- tmp = debugfs_create_regset32("chn_regs", 0444, tmp_d, regset);
- if (!tmp)
- return -ENOENT;
+ debugfs_create_regset32("chn_regs", 0444, tmp_d, regset);
regset_ooo = devm_kzalloc(dev, sizeof(*regset_ooo), GFP_KERNEL);
if (!regset_ooo)
@@ -507,9 +505,7 @@ static int hisi_rde_chn_debug_init(struct hisi_qm *qm)
regset_ooo->regs = hrde_ooo_dfx_regs;
regset_ooo->nregs = ARRAY_SIZE(hrde_ooo_dfx_regs);
regset_ooo->base = qm->io_base;
- tmp = debugfs_create_regset32("ooo_regs", 0444, tmp_d, regset_ooo);
- if (!tmp)
- return -ENOENT;
+ debugfs_create_regset32("ooo_regs", 0444, tmp_d, regset_ooo);
return 0;
}
--
2.23.0
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/hz-wangfuqiang/kae_driver.git
[email protected]:hz-wangfuqiang/kae_driver.git
hz-wangfuqiang
kae_driver
kae_driver
master

搜索帮助