From: Julia Lawall Date: Fri, 08 Aug 2014 10:27:03 +0000 Subject: Re: [PATCH 1/14] i2c: mpc: delete unneeded test before of_node_put Message-Id: MIME-Version: 1 Content-Type: multipart/mixed; boundary="8323329-1811163182-1407493623=:2348" List-Id: References: <1407492475-26283-1-git-send-email-Julia.Lawall@lip6.fr> <20140808102536.GZ1933@pengutronix.de> In-Reply-To: <20140808102536.GZ1933-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org> To: =?ISO-8859-15?Q?Uwe_Kleine-K=F6nig?= Cc: Wolfram Sang , kernel-janitors-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323329-1811163182-1407493623=:2348 Content-Type: TEXT/PLAIN; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable On Fri, 8 Aug 2014, Uwe Kleine-K=F6nig wrote: > Hello, > > On Fri, Aug 08, 2014 at 12:07:42PM +0200, Julia Lawall wrote: > > From: Julia Lawall > > > > Of_node_put supports NULL as its argument, so the initial test is not > > necessary. > > > > Suggested by Uwe Kleine-K=F6nig. > Thanks for picking up my suggestion. > > > The semantic patch that fixes this problem is as follows: > > (http://coccinelle.lip6.fr/) > > > > // > > @@ > > expression e; > > @@ > > > > -if (e) > > of_node_put(e); > > // > > > > I added devicetree@vger.kernel.org to Cc. Maybe they want to comment the > series? If it's acceptable the logical next step is to add the patch to > the collection of semantic patches, right? Yes, I will do that. julia --8323329-1811163182-1407493623=:2348--