From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3s111b5rnvzDrQR for ; Fri, 29 Jul 2016 17:43:31 +1000 (AEST) Received: from pps.filterd (m0098410.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.11/8.16.0.11) with SMTP id u6T7dKSe028690 for ; Fri, 29 Jul 2016 03:43:29 -0400 Received: from e06smtp07.uk.ibm.com (e06smtp07.uk.ibm.com [195.75.94.103]) by mx0a-001b2d01.pphosted.com with ESMTP id 24fcm6dank-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Fri, 29 Jul 2016 03:43:28 -0400 Received: from localhost by e06smtp07.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 29 Jul 2016 08:43:26 +0100 Received: from b06cxnps3075.portsmouth.uk.ibm.com (d06relay10.portsmouth.uk.ibm.com [9.149.109.195]) by d06dlp03.portsmouth.uk.ibm.com (Postfix) with ESMTP id 853D71B08069 for ; Fri, 29 Jul 2016 08:44:52 +0100 (BST) Received: from d06av11.portsmouth.uk.ibm.com (d06av11.portsmouth.uk.ibm.com [9.149.37.252]) by b06cxnps3075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id u6T7hO8K32309400 for ; Fri, 29 Jul 2016 07:43:24 GMT Received: from d06av11.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av11.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id u6T7hNoO017710 for ; Fri, 29 Jul 2016 01:43:24 -0600 Subject: Re: [PATCH] cxl: replace loop with for_each_child_of_node(), remove unneeded of_node_put() To: Andrew Donnellan , linuxppc-dev@lists.ozlabs.org References: <601fb58c-7aee-91ce-2a3d-7a29787968fc@au1.ibm.com> <1469764534-26948-1-git-send-email-andrew.donnellan@au1.ibm.com> Cc: imunsie@au1.ibm.com, clombard@linux.vnet.ibm.com, kernel-janitors@vger.kernel.org, elfring@users.sourceforge.net, julia.lawall@lip6.fr, linux-kernel@vger.kernel.org From: Frederic Barrat Date: Fri, 29 Jul 2016 09:43:22 +0200 MIME-Version: 1.0 In-Reply-To: <1469764534-26948-1-git-send-email-andrew.donnellan@au1.ibm.com> Content-Type: text/plain; charset=windows-1252; format=flowed Message-Id: List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Le 29/07/2016 à 05:55, Andrew Donnellan a écrit : > Rewrite the cxl_guest_init_afu() loop in cxl_of_probe() to use > for_each_child_of_node() rather than a hand-coded for loop. > > Remove the useless of_node_put(afu_np) call after the loop, where it's > guaranteed that afu_np == NULL. > > Reported-by: SF Markus Elfring > Reported-by: Julia Lawall > Signed-off-by: Andrew Donnellan Thanks! Reviewed-by: Frederic Barrat