Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752386AbbKXLig (ORCPT ); Tue, 24 Nov 2015 06:38:36 -0500 Received: from arroyo.ext.ti.com ([192.94.94.40]:57319 "EHLO arroyo.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750924AbbKXLie (ORCPT ); Tue, 24 Nov 2015 06:38:34 -0500 Subject: Re: [PATCH 1/3] video: omapdss: delete unneeded of_node_put To: Julia Lawall References: <1444682596-3065-1-git-send-email-Julia.Lawall@lip6.fr> <1444682596-3065-2-git-send-email-Julia.Lawall@lip6.fr> CC: , Jean-Christophe Plagniol-Villard , , , , Russell King - ARM Linux , Thomas Petazzoni , Andrew Lunn , Bjorn Helgaas , Jason Cooper From: Tomi Valkeinen Message-ID: <56544C16.2070209@ti.com> Date: Tue, 24 Nov 2015 13:37:58 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <1444682596-3065-2-git-send-email-Julia.Lawall@lip6.fr> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="i65rJa85XKJ06HIM1LqiHGoSgpovkkEQc" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2170 Lines: 70 --i65rJa85XKJ06HIM1LqiHGoSgpovkkEQc Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 12/10/15 23:43, Julia Lawall wrote: > Device node iterators perform an of_node_put on each iteration, so putt= ing > an of_node_put before a continue results in a double put. >=20 > A simplified version of the semantic match that finds this problem is a= s > follows (http://coccinelle.lip6.fr): >=20 > // > @@ > expression root,e; > local idexpression child; > iterator i; > @@ >=20 > i(..., child, ...) { > ... when !=3D of_node_get(child) > * of_node_put(child); > ... > * continue; > } > // >=20 > Signed-off-by: Julia Lawall >=20 > --- > drivers/video/fbdev/omap2/dss/omapdss-boot-init.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) Thanks, queued for 4.5. Tomi --i65rJa85XKJ06HIM1LqiHGoSgpovkkEQc Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJWVEwWAAoJEPo9qoy8lh71Al4P/3UXuqJKtWgp6ZbgHMtelyM9 ABQ3xTdQ9mkANhrwktBJje3OToxEHUyA+2ZFb5HXOwEJCVWVFVmN8GhD0k1M5WTQ lWil+In5gOQLoQp2qQH+jv8FjtWjh/S0dGisYVl2sdpCm/aKLam93wL4MVzU7Ube hi2zKqbO4vlpVR+4jxe63aJW2CZwirYES8oRXVPwxRJvEEke96T3m5pHq5yl4y1G 179MY9Bq75zOCYJrDVRel0WO16G394fvmASqaIkoEpU+CVki6j0dk8JAoxRFHlCM OW61Xw49DzU244JN2hOcAi4VlzIUbU8r7VXaZnYl9f7Be8j7bi7mPK0gJcoC5IDZ 016fgWt8lFM+gqXvj2Lk/XJaYy4SLh9XeV11CL6u8eF4zYQOVx0uiqMvKB0P0OlL pSIAYjyg5hHSyDuguaTtBotlf9G1bJQpSUmY2xvzNCEB6gm81nRrvXz/DJoWYfpd 4EPOaxyfFVyTvQCixSdpEemRct/FIyoEkGznIF1LllQRbrTmArrplhdD0gxEvTwJ JVPZDSJICCh5PbQ1YVJmrRkJ9qd/xJlBfAFTBOhguCSF0vXVwF8AQjFhtdzV40uu nRJryp4jjM2ZBHg5DTVka8N4J350KkRCDPM25t4ci9OPm4eeNofqz0kODXl9wf8w SZg/yTXh0kjgaTy/7cJL =W9Et -----END PGP SIGNATURE----- --i65rJa85XKJ06HIM1LqiHGoSgpovkkEQc-- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/