Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp156495lqg; Fri, 1 Mar 2024 00:49:35 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXANGzmPKFMDG4L24Ggzv/1fAjTB9VXeeXNYGXg+nP78dAO89hdixbOuaUSQbYs44PUboSv0t0p9O18kVMaEsK2FdC8awrVyRnb/GGYLw== X-Google-Smtp-Source: AGHT+IGPhYWwDOP9BM4IhudwnAaD3f186ln5vaVJBgRbEcB2CFVyjIQYJl6OchMPQFI6F7x4inmg X-Received: by 2002:a05:6808:da:b0:3c0:3c91:78c3 with SMTP id t26-20020a05680800da00b003c03c9178c3mr965953oic.51.1709282975463; Fri, 01 Mar 2024 00:49:35 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709282975; cv=pass; d=google.com; s=arc-20160816; b=NJpbvJKNW6p3Td+i4XVK+HBOwlBxemSe8JynNHXY/h7Hkb6kgfv7O5qJuet/SoemWr VpGH0Mzbqs+ISNXIkn042z43/ZHfDAnL18KA19ENw13zswtH/v7y+RUumcL5doMcLq28 LwQVer1plnNUm6z6LqrlcYHZ2IhjGiYMJ46PlRoa6nKbWy0+fFenSztKjSkklMkeveFT H1XIvUTE6XTmJZ4sfrlaw3CnSMNEi7AU4Js7ftmkqNAEkIC6y7k80C7MVy4RLViZosZ5 FKHWetFKAxk8o7QDrf0soP4oINCuPg2eCTq+LIoqKaQw5RwglE8xlzJpBVW+uEiFDzmd Q4kg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=mOuhJxuZHYvYGbW7ChC/3nHlFlBqnO/ISqtGhsFApFI=; fh=Xu3thE/mvE9bcAcHShjxelQrr9tog8wdVhMJ6Sbo8q0=; b=Qr4rnA1lMLchnZXjNIa6+A0pXanKZ5izBF64FjEsn0e7Y319O0aEN8Ccw8NZVJWgnw 4eEXzI9zze+3U/r3vLkSsE07OQnaNy6I8Weo9FQDpB3F206dcLwrzXE1jdFg4TrnoKEJ OuWZ2eY3IYIgygS/q2jTcObrpMjkFdEVk9FAXLcAaf1gEQtdf6H5dTWSRhlb2pI4WrkS htKmWC++kuWItgHDy9fC/TCQRByZQAlX810pGUdU9blBbU+jjq/nBWU7kCc8AkoqC9kP GpB8R6Ed4x8hgDGUNCm+H9RrN4T6yAMGoerfdQV6T2TVxBfay2j1ljOW+o2HyhieMk4T xOjg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b="cJnepm/T"; arc=pass (i=1 spf=pass spfdomain=ideasonboard.com dkim=pass dkdomain=ideasonboard.com); spf=pass (google.com: domain of linux-kernel+bounces-88113-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-88113-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d18-20020a631d52000000b005dc8914839bsi3221384pgm.5.2024.03.01.00.49.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 00:49:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-88113-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b="cJnepm/T"; arc=pass (i=1 spf=pass spfdomain=ideasonboard.com dkim=pass dkdomain=ideasonboard.com); spf=pass (google.com: domain of linux-kernel+bounces-88113-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-88113-linux.lists.archive=gmail.com@vger.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 2647F28A503 for ; Fri, 1 Mar 2024 08:49:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 00F7C69E16; Fri, 1 Mar 2024 08:49:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="cJnepm/T" Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) (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 7B4B96A00F; Fri, 1 Mar 2024 08:49:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=213.167.242.64 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709282965; cv=none; b=b0IuzqpfMQniuats+8vKi0Yg2A7ykapsKStTi2PqIwRGV45R7sV63u7pQAUEATUjlbnB4KT/cESsa1aMnQfogVPH5cfXnp+1aDTHlIoztHJpXQpVxuOtEVloXTMjwaoi6adafjXkbGSGLIGkWHBf7VRBrXRkgM74bzMBOHMTzSI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709282965; c=relaxed/simple; bh=QMn7tuLCg5ec9fZk25T59FlsZWXuZo6ZxWhP65pQSXk=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=oDHT+0UgM/QGsvmMC5Ml76Q4m0UBIAfA7KrbDLU4giTIMdNmGRslHgBPHdnZZl7EH7ZxfJYQEq0fPbBgzUZ5NIbr4TL+lDT70naYnDddQMeerll8zWF/3xwC4qsinQI3CWFLNydiwHExOsvm2u3lNXybtkfiGvf0WbdM7l3D4ZU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ideasonboard.com; spf=pass smtp.mailfrom=ideasonboard.com; dkim=pass (1024-bit key) header.d=ideasonboard.com header.i=@ideasonboard.com header.b=cJnepm/T; arc=none smtp.client-ip=213.167.242.64 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ideasonboard.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ideasonboard.com Received: from [192.168.88.20] (91-154-35-128.elisa-laajakaista.fi [91.154.35.128]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id B99C0899; Fri, 1 Mar 2024 09:49:07 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1709282948; bh=QMn7tuLCg5ec9fZk25T59FlsZWXuZo6ZxWhP65pQSXk=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=cJnepm/Tlz9E/UhO1n52YiDDC+eVmSqw9owozuANc+fQxcmGEQi61P3Gp3eV803Zs LdFsgs92GyIIegyYAhFG3VhuoIxWTWx0NAFvUovlXwHmxh5oS+xuxZ/qvxeqkXbqJp lHr55c2IXjy/sfxnpXW1q15s5GKnWif9NikVt1AA= Message-ID: Date: Fri, 1 Mar 2024 10:49:19 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] media: i2c: ds90ub960: Delete duplicate source code in ub960_parse_dt_rxports() Content-Language: en-US To: Sakari Ailus , Markus Elfring Cc: linux-media@vger.kernel.org, kernel-janitors@vger.kernel.org, Andy Shevchenko , Mauro Carvalho Chehab , LKML References: <79fa4854-976d-4aad-86ac-c156b0c4937e@web.de> From: Tomi Valkeinen Autocrypt: addr=tomi.valkeinen@ideasonbo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SjyWXYepFtHz9KsBS0DaZb 4IkLmZwEXpZcIOQjQ71fqlpiXkXSIaQ6YMEs8WjBbpP81h7QxWIfWtp+VnwNGc6nq5IQDESH mvQcsFS7d3eGVI6eyjCFdcAO8eMAEQEAAcLBXwQYAQIACQUCTqazRwIbDAAKCRD6PaqMvJYe 9fA7EACS6exUedsBKmt4pT7nqXBcRsqm6YzT6DeCM8PWMTeaVGHiR4TnNFiT3otD5UpYQI7S suYxoTdHrrrBzdlKe5rUWpzoZkVK6p0s9OIvGzLT0lrb0HC9iNDWT3JgpYDnk4Z2mFi6tTbq xKMtpVFRA6FjviGDRsfkfoURZI51nf2RSAk/A8BEDDZ7lgJHskYoklSpwyrXhkp9FHGMaYII m9EKuUTX9JPDG2FTthCBrdsgWYPdJQvM+zscq09vFMQ9Fykbx5N8z/oFEUy3ACyPqW2oyfvU CH5WDpWBG0s5BALp1gBJPytIAd/pY/5ZdNoi0Cx3+Z7jaBFEyYJdWy1hGddpkgnMjyOfLI7B CFrdecTZbR5upjNSDvQ7RG85SnpYJTIin+SAUazAeA2nS6gTZzumgtdw8XmVXZwdBfF+ICof 92UkbYcYNbzWO/GHgsNT1WnM4sa9lwCSWH8Fw1o/3bX1VVPEsnESOfxkNdu+gAF5S6+I6n3a ueeIlwJl5CpT5l8RpoZXEOVtXYn8zzOJ7oGZYINRV9Pf8qKGLf3Dft7zKBP832I3PQjeok7F yjt+9S+KgSFSHP3Pa4E7lsSdWhSlHYNdG/czhoUkSCN09C0rEK93wxACx3vtxPLjXu6RptBw 3dRq7n+mQChEB1am0BueV1JZaBboIL0AGlSJkm23kw== In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Hi, On 01/03/2024 10:46, Sakari Ailus wrote: > Hi Markus, > > On Fri, Mar 01, 2024 at 08:46:25AM +0100, Markus Elfring wrote: >> From: Markus Elfring >> Date: Fri, 1 Mar 2024 08:23:24 +0100 >> >> Avoid the specification of a duplicate fwnode_handle_put() call >> in this function implementation. >> >> Signed-off-by: Markus Elfring >> --- >> drivers/media/i2c/ds90ub960.c | 5 +---- >> 1 file changed, 1 insertion(+), 4 deletions(-) >> >> diff --git a/drivers/media/i2c/ds90ub960.c b/drivers/media/i2c/ds90ub960.c >> index ffe5f25f8647..eb708ed7b56e 100644 >> --- a/drivers/media/i2c/ds90ub960.c >> +++ b/drivers/media/i2c/ds90ub960.c >> @@ -3486,10 +3486,7 @@ static int ub960_parse_dt_rxports(struct ub960_data *priv) >> } >> } >> >> - fwnode_handle_put(links_fwnode); >> - >> - return 0; >> - >> + ret = 0; > > I think it'd be nicer to initialise ret as zero, then you can just drop the > assignment above. I don't like successful execution entering error paths. That's why there's the return 0. Tomi >> err_put_links: >> fwnode_handle_put(links_fwnode); >> >