Received: by 2002:ab2:6486:0:b0:1ef:eae8:a797 with SMTP id de6csp253391lqb; Sat, 16 Mar 2024 02:47:10 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXOZRUO8zVg6uN7WQ7ji8+NGdrvhCPT2j0n5SS2AcbQA5xrSHulM0wlGYqU/OaM7+rYaY1TQw1gRr4htOn9MD9ZOIBOxT6VNZ+HrAlULQ== X-Google-Smtp-Source: AGHT+IFiMSiVK+7UsSTGvzF1698tDC5Il7XccJLDpBPaNEVZxDG7jcxg4zW4I1I35+GHyZzHnjOc X-Received: by 2002:a17:907:7e9a:b0:a46:8c9f:f783 with SMTP id qb26-20020a1709077e9a00b00a468c9ff783mr3371873ejc.67.1710582430350; Sat, 16 Mar 2024 02:47:10 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710582430; cv=pass; d=google.com; s=arc-20160816; b=y8uSQnNMBtz7/prPfEalWeMhdAh8SdQznhWq2HIl1BIG4bZI8W+BFrIy789x2b85Fa mnYZyBVa0H69o25UtzbvYvr/Vy8ckmmzlbiukdqJyan1FL6ffldUSv2tGIeJ8zYhXvVA YgTAl10z9JvPJ1KW738/JFAEDUS7Wouf4VDhQI8tqf+dWOEjs8SjGHn9jQP3fbxnCS6H DCtpavHZT00ZIFzHoG9NioYUZ0LY3mUnnDOJHXET/xkDfljdaDBPbOfl9fGfBMAi34Uc AJO5qtGRFm/vDdrUoyz4wvxR153errZ8wg3DP/uXPrwRmcSu6bUSpwEL18np34WvhnKj bWXQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=fUW/FIbXtZhpkOcYQxCVkz21OR+E2wEaVF3lBWv8kQM=; fh=+Zxx/8vuOO4f16M8PELY7aLfKC2Y4hJEotT/ikY8fMw=; b=HltlluzWZ16B2Ka2/vdoha705e1zQooub6zY16P62+AUKQtVT/0pse+7SrFnk6hMT6 VLo5C5kzP2DNHJIFEv1xOjOd0eDd1HNc6c0xVHxG01Pc9xGanl4GtOmaSlMkeEvNx9HH FccnfRvlzC/TmXY0vatew1UBFurUIHwC5C8/d9sTG1LbWd/90wuPFCKzisS490EeWYdT N6vk7q5vjZK1tTBY+v9xmrygkPOzmlDiao2GLw9j6llzBMFtrpRICOk9Tg69IF8GjWu9 eP53Co18b+FKEatnS4FGdbRGePQMoGDZsn546mlsD20GMHyv1pHDJRq0WAl5UN9RtJt8 tFZg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ragnatech.se header.s=google header.b=XO0kuuAW; arc=pass (i=1 spf=pass spfdomain=ragnatech.se dkim=pass dkdomain=ragnatech.se dmarc=pass fromdomain=ragnatech.se); spf=pass (google.com: domain of linux-kernel+bounces-105145-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-105145-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ragnatech.se Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id gt38-20020a1709072da600b00a45e1603259si2660705ejc.1003.2024.03.16.02.47.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 16 Mar 2024 02:47:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-105145-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=@ragnatech.se header.s=google header.b=XO0kuuAW; arc=pass (i=1 spf=pass spfdomain=ragnatech.se dkim=pass dkdomain=ragnatech.se dmarc=pass fromdomain=ragnatech.se); spf=pass (google.com: domain of linux-kernel+bounces-105145-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-105145-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ragnatech.se 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 00E031F21961 for ; Sat, 16 Mar 2024 09:47:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 916901799F; Sat, 16 Mar 2024 09:46:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ragnatech.se header.i=@ragnatech.se header.b="XO0kuuAW" Received: from mail-lf1-f52.google.com (mail-lf1-f52.google.com [209.85.167.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 447E91429B for ; Sat, 16 Mar 2024 09:46:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710582418; cv=none; b=NO2rQecOQqkXV6RceoFHtyy94b7kLDuO8gAznxrPF0GYCKSBDuc+awbpAMB6Mnz1FgRtiTHJfAMSgvBEn2xQzTo7iGdXaO1OYqxCF2c6XF/S/d9CVQ+CBrj7leeAeH1l0wxwV/l9VmE3Y7LJ2gq//VXY+ET3ZTPcj8ioNwzYzLY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710582418; c=relaxed/simple; bh=DMtx0/3geiYhVdzSo4B/B12kXf6OyeqliMzNBLNMbFY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=OhpeiXlR4irmmQgkiAmpc3YrWUC6LewF1MZtSSYqvKgV0A4ti31GNd5MsydwTCO/il+srKlujUwnzeJ6BkQy1x7uTzRZ8a6uqjri+SGiaIKH6HFlchoeiLwIpJTFvoy0lTYHpVX6nz3aHGgwrFxGXQuEOlRbOVuqomFJYlyPc2E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=ragnatech.se; spf=pass smtp.mailfrom=ragnatech.se; dkim=pass (2048-bit key) header.d=ragnatech.se header.i=@ragnatech.se header.b=XO0kuuAW; arc=none smtp.client-ip=209.85.167.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=ragnatech.se Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ragnatech.se Received: by mail-lf1-f52.google.com with SMTP id 2adb3069b0e04-513d599dbabso2740863e87.1 for ; Sat, 16 Mar 2024 02:46:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ragnatech.se; s=google; t=1710582414; x=1711187214; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=fUW/FIbXtZhpkOcYQxCVkz21OR+E2wEaVF3lBWv8kQM=; b=XO0kuuAWVGXCHp3fBjnEyHI4y5M/FWfeRaQfsebasvPkOSqgc+ysKHwFuqvoLiKNv7 +vZAGYRFQoxVNccE517ZYtEyNrDOKyo4tfTzr/TT48xXKspdub2fFo2OPrboxx1jpBbs xC3KuHO0/5FAmElYt3foCnetcTFgV18IOdMxj93145Jj1Wd48R5YvR03EXWuiMWQL49I G56mAKnD6dvHxLw6i5L40G4WYrzwiBtEIxPkX2fRIoOiHhxtBCzfKFKLogqPwIYrNtej w4iNIAk57yxvtZGju5y5oEpkK4klCozTuoQkcLo2CowFeAOGC8p8vMbjvdJhKxj50eRa /0pw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710582414; x=1711187214; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=fUW/FIbXtZhpkOcYQxCVkz21OR+E2wEaVF3lBWv8kQM=; b=RB/RJOTMHwKGEOfvq8GDoyZnoa8tGS+JWFPreiWNiqlMu3K2kFLCUi+trUu84Hyc2h iCiv82AnPNKfnycVi8t8cpm9TCTPLEGFDabUhjgRW2jSQgSvft5TqMfWnf1MNZ4kSzA+ wfM+IYXS3ZhnnuANjhxnXU39QKcNxi6P/Ocp2nH6CKlk3O10h0rPeiGw/4oIbOTbaWgm uER/a1bTFLTT56KLpOGQTR8dF1jNii2dO3x0vRJDP6ebikqCPrvY+jaFhPoGrq+1S391 XVxzm4DrY61FWPRIG6Cg+H6CkqbT1t29V295trjQSv6hZ3ipqVuoW1oB1phbAx072sdz eu2g== X-Forwarded-Encrypted: i=1; AJvYcCVpbU4yULUlFWSIpb3/3Lr95PVuIdLqmeluVQ2uwDRpdS1QGG8vXazCuFDMVbquNnCRVGw8Z6HewNRSpFgIREM+a0e3AJ01jIqvg1nx X-Gm-Message-State: AOJu0YxSlIUozjbVIHkxmdeisVJeukojT4gb2VbPq1vnKTvJOI9rWZE3 EpjnAA4mf8hjzrYtKTGM5gm0IfGIHtDKNTY3KIEJpD/vPnYjmvoEd+yOHZRIv1M= X-Received: by 2002:a19:ca51:0:b0:513:b061:1815 with SMTP id h17-20020a19ca51000000b00513b0611815mr4296285lfj.18.1710582414145; Sat, 16 Mar 2024 02:46:54 -0700 (PDT) Received: from localhost (h-46-59-36-113.A463.priv.bahnhof.se. [46.59.36.113]) by smtp.gmail.com with ESMTPSA id u19-20020ac25193000000b00513a76b310esm921223lfi.60.2024.03.16.02.46.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 16 Mar 2024 02:46:53 -0700 (PDT) Date: Sat, 16 Mar 2024 10:46:52 +0100 From: Niklas =?utf-8?Q?S=C3=B6derlund?= To: Dan Carpenter Cc: Sakari Ailus , Geert Uytterhoeven , Markus Elfring , linux-renesas-soc@vger.kernel.org, linux-media@vger.kernel.org, kernel-janitors@vger.kernel.org, Mauro Carvalho Chehab , LKML Subject: Re: [PATCH] media: rcar-csi2: Use common error handling code in rcsi2_parse_dt() Message-ID: <20240316094652.GC2092253@ragnatech.se> References: <8b4203dc-bc0a-4c00-8862-e2d0ed6e346b@web.de> <260d82b6-e7fc-40c3-b414-50a883709fd7@moroto.mountain> 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=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Hi Dan, On 2024-03-04 14:16:56 +0300, Dan Carpenter wrote: > On Mon, Mar 04, 2024 at 10:48:47AM +0000, Sakari Ailus wrote: > > Hi Dan, > > > > On Fri, Mar 01, 2024 at 04:42:01PM +0300, Dan Carpenter wrote: > > > Sakari Ailus pointed out in another thread that we could use __free() > > > instead. Something like this: > > > > > > > Looks good to me. > > Thanks for checking! I've never used these before. > > > > > We could merge this with your SoB (pending Niklas's review). :-) The driver > > has been since moved under drivers/media/platform/renesas/rcar-vin/ . > > Alright. I can resend this as a proper patch. Please do. I do find the idea of scoped operations and the syntax struct fwnode_handle *fwnode __free(fwnode_handle) = NULL; a bit foreign in a C context. But I think the intention is clear and it allows us to avoid having the remember to free the fwnode in error paths which is a nice thing. > > regards, > dan carpenter > -- Kind Regards, Niklas Söderlund