bus: imx-weim: drop unnecessary DT node name NULL check
authorRob Herring <robh@kernel.org>
Wed, 29 Aug 2018 20:02:58 +0000 (15:02 -0500)
committerShawn Guo <shawnguo@kernel.org>
Mon, 1 Oct 2018 05:24:15 +0000 (13:24 +0800)
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>
drivers/bus/imx-weim.c

index 6a94aa6a22c27ce90ab996277bbc3d5c2da50781..d84996a4528ead1c3d38ecdf74922b78c12bc2c1 100644 (file)
@@ -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) {
-               if (!child->name)
-                       continue;
-
                ret = weim_timing_setup(child, base, devtype);
                if (ret)
                        dev_warn(&pdev->dev, "%pOF set timing failed.\n",