Skip to content

Commit 2ba4e3b

Browse files
committed
soc: mediatek: mtk-svs: delete node name check
The function svs_add_device_link is called only internally from the SoC specific probe functions. We don't need to check if the node_name is null because that would mean that we have a buggy SoC probe function in the first place. Reviewed-by: Roger Lu <roger.lu@mediatek.com> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Link: https://lore.kernel.org/r/20230209162403.21113-1-matthias.bgg@kernel.org Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
1 parent 549053b commit 2ba4e3b

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

drivers/soc/mediatek/mtk-svs.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2027,11 +2027,6 @@ static struct device *svs_add_device_link(struct svs_platform *svsp,
20272027
struct device *dev;
20282028
struct device_link *sup_link;
20292029

2030-
if (!node_name) {
2031-
dev_err(svsp->dev, "node name cannot be null\n");
2032-
return ERR_PTR(-EINVAL);
2033-
}
2034-
20352030
dev = svs_get_subsys_device(svsp, node_name);
20362031
if (IS_ERR(dev))
20372032
return dev;

0 commit comments

Comments
 (0)