“a6e71424b446fc6d3d804603aab4984c9756ad33”上不存在“source/libs/git@gitcode.net:taosdata/tdengine.git”
提交 e4946cdc 编写于 作者: A Axel Lin 提交者: Philipp Zabel

gpu: ipu-v3: Return proper error on ipu_add_client_devices error path

Avoid returning an uninitialized variable in the error path.
Signed-off-by: NAxel Lin <axel.lin@ingics.com>
Signed-off-by: NPhilipp Zabel <p.zabel@pengutronix.de>
上级 b6c044a3
...@@ -1116,8 +1116,10 @@ static int ipu_add_client_devices(struct ipu_soc *ipu, unsigned long ipu_base) ...@@ -1116,8 +1116,10 @@ static int ipu_add_client_devices(struct ipu_soc *ipu, unsigned long ipu_base)
id++, &reg->pdata, sizeof(reg->pdata)); id++, &reg->pdata, sizeof(reg->pdata));
} }
if (IS_ERR(pdev)) if (IS_ERR(pdev)) {
ret = PTR_ERR(pdev);
goto err_register; goto err_register;
}
} }
return 0; return 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册