Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1750776pxb; Wed, 20 Oct 2021 11:00:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzM26ak5vUEoq6D+EitIRiJoWNzCTACkW5jmmgjxJc09Rjh6w9L+FN1Mijr5lk01k+bL+so X-Received: by 2002:a17:90a:8a0a:: with SMTP id w10mr456297pjn.60.1634752805439; Wed, 20 Oct 2021 11:00:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634752805; cv=none; d=google.com; s=arc-20160816; b=sS+7ixyz2kQ6vUTOSpqOSPKnOj/f5FRTCEjKxMwnkdq2sgqxGAge+vXFlNK0ecKZ7m f7lALcVl2KJWWHH/NihG9WFZSDGKLsLSBKe3V63ODlyo2L5bLjpmpckSVNxDiqNtzBj8 JRHaNQz2VVg5sxHEexkwfZoSeXtcp3lMHgTZ9J2o94c9MAusCbXSCM8jJXk01+v1Sfjr ccf4lUI1aKid2AspEn4g/tDQ6VzFBPtOcn1jZzAT+wZjB5jKGN8tnpCZNOG0/TN3nuEI SdfTNdXNNZZvu29YZ6LA9PlnZ+8LfREBOCkwsq7MtH07ZbJtreTFeSFCqi/oa/lyz4Ne jzHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=Kk18om8C4AqBKZvLH6Ib1TuSuLkolU+LnVa8ozj2pfs=; b=0RdptsxS4gZJHdFUKVeXAWbn+TJ838pbUyARnLh7Z7Pf55pyV0dM/XbcervdKGQNU0 kVtYXV/W7qKqTKnh1lSUtussv1EjTLg+9U+5ggu37gNHgSy1Cn1D/YVhhvCSVykTPe87 xGSzPyBNK2zEvYU6V0RKVH2/77TdGBX5l9iptd29MILDXBi0gB1mwqM8++TZa8Lj1FlL U+ZvwBnTmV/6xDyNQZjCT17jkwuUV07RIhAWR0X8fFjhDlew42d7NWvB6SRjUZmeB8My Efh5s18s1WJz6y3OoqM9sqHYGiZmgHWcIKX23iLtxo+4+5r5p3oEan5sDdLv5LS/zaZj Noug== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c10si4188681plh.122.2021.10.20.10.59.47; Wed, 20 Oct 2021 11:00:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231124AbhJTSAy (ORCPT + 99 others); Wed, 20 Oct 2021 14:00:54 -0400 Received: from mail-oi1-f176.google.com ([209.85.167.176]:39554 "EHLO mail-oi1-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231232AbhJTSAs (ORCPT ); Wed, 20 Oct 2021 14:00:48 -0400 Received: by mail-oi1-f176.google.com with SMTP id s9so8249925oiw.6; Wed, 20 Oct 2021 10:58:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=Kk18om8C4AqBKZvLH6Ib1TuSuLkolU+LnVa8ozj2pfs=; b=L3dHqT/9cHakjBDX0PIzE0IGEKnGqIyopRJtt9sXKFRbF72issP5UXkW+dcF2PQgGM JJuKTrUa826KA3BOXNDOqpiWFinFfQLRqbYWgTQ0sn0BmV7sXOuDZmKFnkeDXHTprOxO QD5JnJgTE9Bqc9HvpIQvtpVKZ06FZjQ0bhL4i53j7pTvwFU0UL8IICinONjvDaYxJGLr FS/UF1nv9gqrAExc1Ti4QTvbavPuLrqeEV7Ci8CWIWzjonh5RuNN9gi/cwTy0iNo2bcF f6/7J9dHx5cn8DuFc03RqbAKQqSaeYMe+O+94z4j4gdQqLSr5Mg4IF3gL98P1vZJVXnl JMww== X-Gm-Message-State: AOAM530rEVEMvaLZznKHnDh9g+U1t1kFH1Zsw1MUnDkfS2nAzMdsZSvn KyJpAdCz9io8RNSjj/9BeQ== X-Received: by 2002:a05:6808:f86:: with SMTP id o6mr373346oiw.68.1634752713998; Wed, 20 Oct 2021 10:58:33 -0700 (PDT) Received: from robh.at.kernel.org (66-90-148-213.dyn.grandenetworks.net. [66.90.148.213]) by smtp.gmail.com with ESMTPSA id e2sm506024ooa.20.2021.10.20.10.58.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Oct 2021 10:58:33 -0700 (PDT) Received: (nullmailer pid 2593622 invoked by uid 1000); Wed, 20 Oct 2021 17:58:32 -0000 Date: Wed, 20 Oct 2021 12:58:32 -0500 From: Rob Herring To: Wan Jiabing Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, kael_w@yeah.net, Frank Rowand , Rob Herring Subject: Re: [PATCH] of/unittest: Add of_node_put() before return Message-ID: References: <20211015082658.19005-1-wanjiabing@vivo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211015082658.19005-1-wanjiabing@vivo.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 15 Oct 2021 04:26:58 -0400, Wan Jiabing wrote: > Fix following coccicheck warning: > ./drivers/of/unittest.c:3091:1-23: WARNING: Function > for_each_child_of_node should have of_node_put() before return > > Early exits from for_each_child_of_node should decrement the > node reference counter. > > Signed-off-by: Wan Jiabing > --- > drivers/of/unittest.c | 2 ++ > 1 file changed, 2 insertions(+) > Applied, thanks!