Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp499966lqe; Sat, 6 Apr 2024 09:48:07 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWWW9pHn2uVuUbmegPSBLiAK74JdTZBG3X8LgGSDa0fX33Ne+TPVHIOHilB06jdNYdP9yPJS0yFEjZlY2pr6zpnFEDKg+ny+nDrV3Tc4Q== X-Google-Smtp-Source: AGHT+IFvh6ozXYoOGNXcXmqt2fUUp4UozonhhCkZa4lHX2CF+kmouoRyrQGdBGjrYotlcBqRUeU5 X-Received: by 2002:a17:907:7f87:b0:a51:c764:483b with SMTP id qk7-20020a1709077f8700b00a51c764483bmr189724ejc.24.1712422087005; Sat, 06 Apr 2024 09:48:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712422086; cv=pass; d=google.com; s=arc-20160816; b=Q6/9p8QYFp17UL7a2Kz23YMl2Gob/6lCqQOAhUO2DUIQT+4bnh5mSgVjnJp99H775D wA5GV/FGb0PP/581GPtChzUeEKqkdCHgs3bKRvzEeVBucs7Ij1LRoPcTGaQn6ABzM01/ mRMCGXJ/kI/F38vC3mOuvwki12/Q4mA25IQjCoQesF0YkgKZlMQ5OsGq2tUfF3eifIbb sLjSr30F0lwTxQLPLd/ydRp3SEm+f8tKGnZFiBkOJCWHwOn30rcyjp7sXMZtZZCPUUme YIhjViFc0R3zkPvjX4e7zNf9C90h//PEwf9yxcaXYSEHRqBy+RueUCqrhsOmqWvCk5Mo wq2w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=LseT3v5Fe9g9HiafsdIRFE+6zyl4DxIZixGOQPIZpmw=; fh=EbZH//H+m5+9BuIvOSGON5yA0DLB+JhkUCxL+CO5W5g=; b=VDAp0rkxiGUxTqRwS058JR4XOBCbc/mHKwDnqXfDWC/5NmbIY12Q5s4tV0a5pyiUYV 5N3LELDa9RbnLxnw8jF9YL/JNwlG1lNZP/80/tWTmsu2gkqBJf23nbno67CJ/0NryEoE LgsjYRsH3Ogu+1bfTCHysMVf0qRja2be9WaifVZHyXTd8mkQpW+2PZxQ/ZD9EZtRovj1 ZJnD25kRvo3Ql0RfLgvLRSQ/HWVSaBjAwll5oOrZzz6G7ubLvM3qkIsIHe/YwPwLks1T aXnMb4Owj8abYWE8aRSGJ7rKLKP4Zb6/kTy+iaLlKZHyEf4PeW2XpMJ4ApwqANIMWqYM XU6g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QEGiyEUU; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-134015-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-134015-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id e22-20020a170906045600b00a4df445bd1bsi1895828eja.799.2024.04.06.09.48.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 06 Apr 2024 09:48:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-134015-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QEGiyEUU; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-134015-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-134015-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id B6D171F21876 for ; Sat, 6 Apr 2024 16:48:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CEE814438A; Sat, 6 Apr 2024 16:47:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="QEGiyEUU" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E793940BE6; Sat, 6 Apr 2024 16:47:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712422067; cv=none; b=Iz/KlIVtNM4Z/MitmtLxaSoS4Whc0wByhdU3/sPmn2KpZJITPgeGycb7EVRTeZj0km29EKYbuMf0Q0ZcDkwrrGJGHPJPf6pqmFWC/U+pHn5PKoidQVs7boiXbZBKGbCJR97WKPxhsbYfCVpKehttNqS4FkTTPwd41XcZzEUm4Ko= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712422067; c=relaxed/simple; bh=MKSYUuL5EWHfVs1stO0tc254Y3E6+JVTDm0nqhyRRPU=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=iYjcFXAgl1rpunlexpbznNdw9VV/UUVq62uQiCmbINepDPFJHHooaK5BNCVXDkpX4AYb5lu4e8evUaHmZ7BVr+ih4KHAmHofMZbhRTBs55/5auk4+ofSPZKZ2Nn5/ku67LG2zTRdW3Keb2PkdX1HxF6P4C3VjTNt4YnOVMofBEk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=QEGiyEUU; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 734DEC433C7; Sat, 6 Apr 2024 16:47:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712422066; bh=MKSYUuL5EWHfVs1stO0tc254Y3E6+JVTDm0nqhyRRPU=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=QEGiyEUUW70Z2/xp3+x1TmOHjA3r5hPqfcF2XI8c8S+gi96XEKBPSwMVTM046lnff MQvUUvDaz4Fzi/uX94dUMi0T5TsyMPJAyuyMeMDe7H1B+v0210PgO/FnqUGhC8Gcu9 im6X+MQcV5jUQwBcMeGl8ZeYONfV22wgOScpUaJCgaxGeQJb8V2j4pnQon70bDMPPb OnInBFki8EPdwbfQLjEvf2U0WKLQl/Gt4XcDuwJvxRt9yA/mRdGjzF8sDYOam7ofO8 QZyTZvpfEaiA4sHgTpx2errhIL47fGp0OD63mvZRTR75QpB6/8YguKuOqI7DE0HaZ4 0Az1XV5xIGxzQ== Date: Sat, 6 Apr 2024 17:47:34 +0100 From: Jonathan Cameron To: Rob Herring Cc: Saravana Kannan , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/3] of: Add a helper to free property struct Message-ID: <20240406174734.0a994e52@jic23-huawei> In-Reply-To: <20240404-dt-cleanup-free-v1-1-c60e6cba8da9@kernel.org> References: <20240404-dt-cleanup-free-v1-0-c60e6cba8da9@kernel.org> <20240404-dt-cleanup-free-v1-1-c60e6cba8da9@kernel.org> X-Mailer: Claws Mail 4.2.0 (GTK 3.24.41; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Thu, 04 Apr 2024 09:15:10 -0500 Rob Herring wrote: > Freeing a property struct is 3 kfree()'s which is duplicated in multiple > spots. Add a helper, __of_prop_free(), and replace all the open coded > cases in the DT code. > > Signed-off-by: Rob Herring Reviewed-by: Jonathan Cameron