From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752014AbcHHGrU (ORCPT ); Mon, 8 Aug 2016 02:47:20 -0400 Received: from ozlabs.org ([103.22.144.67]:53863 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750801AbcHHGrT (ORCPT ); Mon, 8 Aug 2016 02:47:19 -0400 From: Michael Ellerman To: Julia Lawall , Benjamin Herrenschmidt Cc: kernel-janitors@vger.kernel.org, Paul Mackerras , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 09/11] powerpc/mpic: use of_property_read_bool In-Reply-To: <1470387411-15879-10-git-send-email-Julia.Lawall@lip6.fr> References: <1470387411-15879-1-git-send-email-Julia.Lawall@lip6.fr> <1470387411-15879-10-git-send-email-Julia.Lawall@lip6.fr> User-Agent: Notmuch/0.21 (https://notmuchmail.org) Date: Mon, 08 Aug 2016 16:37:52 +1000 Message-ID: <87y447sr3z.fsf@concordia.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Julia Lawall writes: > Use of_property_read_bool to check for the existence of a property. > > The semantic patch that makes this change is as follows: > (http://coccinelle.lip6.fr/) > > // > @@ > expression e1,e2; > statement S2,S1; > @@ > - if (of_get_property(e1,e2,NULL)) > + if (of_property_read_bool(e1,e2)) > S1 else S2 > // > > Signed-off-by: Julia Lawall > > --- > arch/powerpc/sysdev/mpic.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Acked-by: Michael Ellerman cheers