Thread (2 messages) 2 messages, 2 authors, 2021-03-30

Re: [PATCH] soc: mediatek: pm-domains: fix missing error codes

From: Matthias Brugger <matthias.bgg@gmail.com>
Date: 2021-03-30 10:08:42
Also in: linux-arm-kernel

Hi Zihao,

On 15/03/2021 07:47, Jay Fang wrote:
From: Zihao Tang <redacted>

Fixes one smatch warnings:

drivers/soc/mediatek/mtk-pm-domains.c:492 scpsys_add_subdomain() warn: missing error code 'ret'

Reported-by: kernel test robot <redacted>
Reported-by: Dan Carpenter <redacted>
Signed-off-by: Zihao Tang <redacted>
Signed-off-by: Jay Fang <f.fangjian@huawei.com>
That got already fixed by Enric [1]. Anway thanks for the patch.

Matthias

[1]
https://patchwork.kernel.org/project/linux-mediatek/patch/20210303091054.796975-1-enric.balletbo@collabora.com/
quoted hunk ↗ jump to hunk
---
 drivers/soc/mediatek/mtk-pm-domains.c | 1 +
 1 file changed, 1 insertion(+)
diff --git a/drivers/soc/mediatek/mtk-pm-domains.c b/drivers/soc/mediatek/mtk-pm-domains.c
index b7f6976..5778dad 100644
--- a/drivers/soc/mediatek/mtk-pm-domains.c
+++ b/drivers/soc/mediatek/mtk-pm-domains.c
@@ -487,6 +487,7 @@ static int scpsys_add_subdomain(struct scpsys *scpsys, struct device_node *paren
 
 		child_pd = scpsys_add_one_domain(scpsys, child);
 		if (IS_ERR(child_pd)) {
+			ret = PTR_ERR(child_pd);
 			dev_err_probe(scpsys->dev, PTR_ERR(child_pd),
 				      "%pOF: failed to get child domain id\n", child);
 			goto err_put_node;
_______________________________________________
Linux-mediatek mailing list
Linux-mediatek@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-mediatek
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help