summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2018-08-29 16:02:58 -0400
committerShawn Guo <shawnguo@kernel.org>2018-10-01 01:24:15 -0400
commitb1a23445364d321bfe8d8aa432c955d07ed38b47 (patch)
tree10f929230c1f94c1cf79358809666e3430262ecc
parent73f59712a1a3e532a2cbfe582ecfdbf56c33297d (diff)
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: Rob Herring <robh@kernel.org> Signed-off-by: Shawn Guo <shawnguo@kernel.org>
-rw-r--r--drivers/bus/imx-weim.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/bus/imx-weim.c b/drivers/bus/imx-weim.c
index 6a94aa6a22c2..d84996a4528e 100644
--- a/drivers/bus/imx-weim.c
+++ b/drivers/bus/imx-weim.c
@@ -156,9 +156,6 @@ static int __init weim_parse_dt(struct platform_device *pdev,
156 } 156 }
157 157
158 for_each_available_child_of_node(pdev->dev.of_node, child) { 158 for_each_available_child_of_node(pdev->dev.of_node, child) {
159 if (!child->name)
160 continue;
161
162 ret = weim_timing_setup(child, base, devtype); 159 ret = weim_timing_setup(child, base, devtype);
163 if (ret) 160 if (ret)
164 dev_warn(&pdev->dev, "%pOF set timing failed.\n", 161 dev_warn(&pdev->dev, "%pOF set timing failed.\n",