From: Rob Herring Date: Wed, 29 Aug 2018 20:02:58 +0000 (-0500) Subject: bus: imx-weim: drop unnecessary DT node name NULL check X-Git-Tag: v4.20-rc1~64^2~6^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b1a23445364d321bfe8d8aa432c955d07ed38b47;p=thirdparty%2Flinux.git 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 Signed-off-by: Shawn Guo --- diff --git a/drivers/bus/imx-weim.c b/drivers/bus/imx-weim.c index 6a94aa6a22c27..d84996a4528ea 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, } 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",