bus: imx-weim: drop unnecessary DT node name NULL check
PATCH 1/1 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.
Cc Shawn Guo <[email protected]>
Signed-off-by Rob Herring <[email protected]>
--- drivers/bus/imx-weim.c | 3 --- 1 file changed, 3 deletions(-)
drivers/bus/imx-weim.c +0 -3
@@ -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",
Signature · 1 line
2.17.1
Shawn Guo
AppliedQuoted 5 lines · Rob Herring
Checking the child node names is pointless as the DT node name can never be NULL, so remove it.
Cc Shawn Guo <[email protected]>Signed-off-by Rob Herring <[email protected]>
Applied, thanks.
Shawn Guo
AppliedQuoted 5 lines · Rob Herring
Checking the child node names is pointless as the DT node name can never be NULL, so remove it.
Cc Shawn Guo <[email protected]>Signed-off-by Rob Herring <[email protected]>
Applied, thanks.