Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp30880imm; Wed, 29 Aug 2018 13:05:06 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbJxtcy2TxwpqUXg82eK419iBTkg7Tkaq95Ewxv6rnIR1bNtnKqhghnrf1TyFno5yyk9k17 X-Received: by 2002:a17:902:2:: with SMTP id 2-v6mr7429908pla.181.1535573106203; Wed, 29 Aug 2018 13:05:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535573106; cv=none; d=google.com; s=arc-20160816; b=w8WKqwqyBk7dpwQdoszIzI2M7jduEJoSqwG8T12v1n2RaQliW15BliFpc47dCOyBy+ BCUF9u8egTmZK9u0fh1FmMXRzPiCz44L4T/xCtUGgSpZoQ817+Nq6n4hTpdTucXOwcpa w8VeFO1NlPhXVTFvepyRk2lfgmO3GJEMnMibX9rjLNWfScd4IOQY+yGSU4G0FL8ZWckz cBlVAVIoUe2aog9tMYfXd6hlBqYaCj6nf0IOwKjINUMa9FDbK0c56OCgq4bdkPiWBSTL GRSKFLaRQUfyhG1Ud0t4CUvxCTX8x6ADMB51Tz2a0H51NTKvDL2GI87vz9HO7rd2QhcS EFsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=hGXmEZMAuav9e4w9TdAfIopv7HbS/hsmurNf2ijiRPY=; b=LXK7LZSoaC+MU/BZWBMGP2yZ4tVtm7aTOdqbXBhvXd+l0aRaBfRqSmG7swU+X5c0vu nquJ1THJrN1NAlThm4jKaGFqXgnGbbFw+8ua6vIkczRz0DvT1sONowwCWLnQfWLtWoe4 gokvs+lJ814Z9N/pVsqrjpJQTyOzZX0ClQGZM06r5IoJbAVxzmTROLTnXNpzUlzFJ7s6 DcPIQ9Q/oDuPOoWXP3MbjSkcdCsVCjiSvzFxEorzPt/bLcquewxerDz7aH+m9nv5zJ16 EJlgd+oYoIQHxJPRQWE4WMN9PfWdUBVEHSscqR35n3qPYXiAjdEmD2n4qs75HfWFMS1v J/HA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bb4-v6si4462100plb.467.2018.08.29.13.04.50; Wed, 29 Aug 2018 13:05:06 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728273AbeH3AB1 (ORCPT + 99 others); Wed, 29 Aug 2018 20:01:27 -0400 Received: from mail-oi0-f68.google.com ([209.85.218.68]:46514 "EHLO mail-oi0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727245AbeH3AB1 (ORCPT ); Wed, 29 Aug 2018 20:01:27 -0400 Received: by mail-oi0-f68.google.com with SMTP id y207-v6so11339070oie.13 for ; Wed, 29 Aug 2018 13:03:00 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=hGXmEZMAuav9e4w9TdAfIopv7HbS/hsmurNf2ijiRPY=; b=qDIc9j4dIUTKIC0NS56e1GhoQOYRy9yBHpKxh8cUvGebsrnDSqiZuCwx3pm3oZdXi0 YFse+60UXkU8GcZ4r0LZJM9ptGMX5+PvAGh0sjRjYJ8d5Q55KfRO69JE3Xl4FrRqYQ8B ERs2beP0o8jyZCvFmtvc/9prlBaWo2hIYoiCu7xh3yp3I4xkVPfrrcsJHtYEsKw78Jbn wfPYEgY1HBaqPnhOs+iuI7Z1EBmD9THEFtK7Ht9nokIo+gZCiIO0f2AXCwF9PW9fTYcX HxJCoBHQZSJ7+QQsAwLQ3WggbQhPvTje+MkRqj6ORE/HDqTf+5tlmOdPs83BVyz8hzmw oH6A== X-Gm-Message-State: APzg51DnK/uFED3vOHnqgxVgoRsXTFON+oNTNhXeyoYgWLRexyyMvnl6 LL3JObS+K/XVxBG7LxT1qw== X-Received: by 2002:aca:ac54:: with SMTP id v81-v6mr4028335oie.1.1535572979789; Wed, 29 Aug 2018 13:02:59 -0700 (PDT) Received: from xps15.herring.priv (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.googlemail.com with ESMTPSA id i132-v6sm3515814oif.20.2018.08.29.13.02.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 29 Aug 2018 13:02:59 -0700 (PDT) From: Rob Herring To: Shawn Guo Cc: linux-kernel@vger.kernel.org Subject: [PATCH] bus: imx-weim: drop unnecessary DT node name NULL check Date: Wed, 29 Aug 2018 15:02:58 -0500 Message-Id: <20180829200258.14463-1-robh@kernel.org> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Checking the child node names is pointless as the DT node name can never be NULL, so remove it. Cc: Shawn Guo Signed-off-by: Rob Herring --- drivers/bus/imx-weim.c | 3 --- 1 file changed, 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, } 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", -- 2.17.1