Path: csiph.com!news.redatomik.org!weretis.net!feeder4.news.weretis.net!news.unit0.net!news.panservice.it!bofh.it!news.nic.it!robomod From: Ethan Zhao Newsgroups: linux.kernel Subject: Re: [PATCH 2/2] genirq: Use is_fwnode_irqchip() directly Date: Thu, 06 Jul 2017 07:50:01 +0200 Message-ID: References: Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=vVB4rZWTu8U5/H0TPatktVDzOFVOJWlQj/FtfKRMzps=; b=GLUofu8Eug+tdxuqVEG0nHBNhhq6vFSRQmUjCd07IzdQPu41pMoi7CkLQ8qngtexqx WlhEhBNTV1vXCTcY/uMSRvZ0hoPbpqkGxzFFu6sv7rhJESpsvWYFeqpKaLA8s2oW27dB yxTUM4Eyei386pwR4ONKquG16iuE3P3ONiZWa92EmW/9YvgLCZ9hqYBJW7B9zFTreHQL t0Xpzw8TpZP5/ISs29NBbos2+q4zma8EywQn5kSTZwO3merDc3oSre3qqrdwDoatRpJn Pz+GqSx/tb2Q02V5PYyHRWINQsj+y/nflkJBMGA7g85UHzJu7mZZazHn24zU2q9tPC82 GApA== X-Google-Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=vVB4rZWTu8U5/H0TPatktVDzOFVOJWlQj/FtfKRMzps=; b=t9bhYRPq9BSG9s9x7U6OrHsQA0QgCGi3DtCqwrfQTAFAyRCtezOW2M3T9O4rLxstNi k26p/RGOJ1UkOTh+MOArhHN4YYaQA7T+o/dn7uw9Mifuy1ROPSkRE3dQrWKakKyD7FAo XyQ/GGPyxbedUx62i7N3q+XSzCLFF3DQ7Rzyv39Lc2dkNop0fSe3yVIP1v1KgaLCepBE o5w/mHq55g1sLy3DTX7pk1TO4Fny9I2o+GfHTtt9OtXm/Z/MO8ojStKA36F09Kao/o4b VBjsbeB07vkQ7ezlmBx2WMMXNS3n9HEgRT6VSKXh+Y71OvsXQT44P9zDsOXn6oXVfXXZ o43A== X-Gm-Message-State: AKS2vOx/8CZo7DBMe3AbCt8KWJzwDK9uLwyxvl4LplrpxBmQZiBxnSAy 8j0WqseqjNN5Be3PuKmWAoZTEpYWMg== X-Received: by 10.202.102.164 with SMTP id m36mr27823986oik.97.1499319966248; Wed, 05 Jul 2017 22:46:06 -0700 (PDT) MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: robomod@news.nic.it List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Approved: robomod@news.nic.it Lines: 36 Organization: linux.* mail to news gateway X-Original-Cc: Thomas Gleixner , Marc Zyngier , LKML , Ma Jun , Agustin Vega-Frias , John Garry , Hanjun Guo X-Original-Date: Thu, 6 Jul 2017 13:46:05 +0800 X-Original-Message-ID: X-Original-References: <1499315732-63950-1-git-send-email-guohanjun@huawei.com> <1499315732-63950-2-git-send-email-guohanjun@huawei.com> X-Original-Sender: linux-kernel-owner@vger.kernel.org Xref: csiph.com linux.kernel:1682056 Hanjun=EF=BC=8C What branch is this patch for ? Check v4.12, failed to apply. Thanks, Ethan On Thu, Jul 6, 2017 at 12:35 PM, Hanjun Guo wrote: > From: Hanjun Guo > > is_fwnode_irqchip() already check fwnode is NULL or not, > just use is_fwnode_irqchip() directly. > > Signed-off-by: Hanjun Guo > --- > kernel/irq/irqdomain.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/kernel/irq/irqdomain.c b/kernel/irq/irqdomain.c > index 1bc38fa..14a21a3 100644 > --- a/kernel/irq/irqdomain.c > +++ b/kernel/irq/irqdomain.c > @@ -137,7 +137,7 @@ struct irq_domain *__irq_domain_add(struct fwnode_han= dle *fwnode, int size, > if (WARN_ON(!domain)) > return NULL; > > - if (fwnode && is_fwnode_irqchip(fwnode)) { > + if (is_fwnode_irqchip(fwnode)) { > fwid =3D container_of(fwnode, struct irqchip_fwid, fwnode= ); > > switch (fwid->type) { > -- > 1.7.12.4 >