Commit b1a23445 authored by Rob Herring's avatar Rob Herring Committed by Shawn Guo

bus: imx-weim: drop unnecessary DT node name NULL check

Checking the child node names is pointless as the DT node name can
never be NULL, so remove it.
Signed-off-by: default avatarRob Herring <robh@kernel.org>
Signed-off-by: default avatarShawn Guo <shawnguo@kernel.org>
parent 73f59712
...@@ -156,9 +156,6 @@ static int __init weim_parse_dt(struct platform_device *pdev, ...@@ -156,9 +156,6 @@ static int __init weim_parse_dt(struct platform_device *pdev,
} }
for_each_available_child_of_node(pdev->dev.of_node, child) { for_each_available_child_of_node(pdev->dev.of_node, child) {
if (!child->name)
continue;
ret = weim_timing_setup(child, base, devtype); ret = weim_timing_setup(child, base, devtype);
if (ret) if (ret)
dev_warn(&pdev->dev, "%pOF set timing failed.\n", dev_warn(&pdev->dev, "%pOF set timing failed.\n",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment