Received: by 2002:a05:7208:13ce:b0:7f:395a:35b6 with SMTP id r14csp1197148rbe; Fri, 1 Mar 2024 07:05:13 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWL+TYXlEkyi0oxMA5i/ikJ9R5PPCNqgJRvG0PI6c28yuJV5/FzGX6Ios0Y0IpLfA9HJyMR04YNF6XYHjlnpeYtmzDS4x1iP6fXEFhK7A== X-Google-Smtp-Source: AGHT+IEdL55voN4ESR9lDay3y8ZQz7yXBDl2CGk1PTo1bmfzwHWEpiqEevhk2i5yz8geX+XcbKT0 X-Received: by 2002:a17:902:c412:b0:1dc:3c3f:c64b with SMTP id k18-20020a170902c41200b001dc3c3fc64bmr2346837plk.24.1709305511027; Fri, 01 Mar 2024 07:05:11 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709305511; cv=pass; d=google.com; s=arc-20160816; b=PwvDeL45882P2uUzEK8i4bVlGsChVjLLsuwB/qdEYuJ2VwymX8e76FMKz5uvz3KxdE BZPalOaABoan5zFy7CnCxxRVicS+0N2vnMsh0dK9nSWajab5EbYTJOE1n+KWcKXsn532 Gkjx235kuoYiXgqbQQACjtVEeuy26NtZZUD/QdYlsKoXgxTi9FNUAymRaaSt5OJ5OmZq 70TmAx2aTMhITrBKTFqn4X7nwwr/KdNt3bDD68fC+glXj5f38O5Gt/pnO+JnUZIeAKC4 dCf+2cFL3j0gDA6iznreMjrm2ykSTp9VAcjPpGNeO6itnApHlfDpCcwpSjTewsX+hUBw kDKw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=B830gsqfmVmo0BNvv/cCvq0kpeLuGwNivgutQMNEK6g=; fh=6Yc3Y5rzNxg9EC6657zyrteoaywf/FVKs6SiYczFTn8=; b=AqsUjFJlq+9NF0PDg8ysta7LHef5wainKJxfraBwZFAXm48PLvSwXeOgJJIFz2l7HD d3jXenXN5Uz+eolylWQo8V/vyQtVlK4XNbDStdTK9OAg9uOXAXjcpCUx1aMWeDgk4WDJ O4FUWNOhAwwIecGz8JHH6P9t/At0tPUTC25abPJAfvb7SUStPmYKRf2CPEPyU7TbLvmc AyRJZ39Ie85PVI1EH3MOveBqJxVIXxI2m4nd4KPQiTFgjm04QlgkU2YgHk6xNTtS2oUg rIhAaqoP2CuscWLvZtgURG25MHumYECcAkefGzo+tC1J8EIE/7hYdsL/yVSu8QiPwEFg B/Aw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=VDJTUczH; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-88109-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-88109-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id ma11-20020a170903094b00b001dbf6a7e789si3725107plb.122.2024.03.01.07.05.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 07:05:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-88109-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=VDJTUczH; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-88109-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-88109-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 3C1C0B21FBA for ; Fri, 1 Mar 2024 08:47:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 60CBA6A026; Fri, 1 Mar 2024 08:47:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="VDJTUczH" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.13]) (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 E5BC21D6BD; Fri, 1 Mar 2024 08:47:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.13 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709282822; cv=none; b=bqHPNbzyIXpCQK18A+265GdHepKZ7hLudibT6242ruvZ9tHES4iphWGPtauzlubohd2i1/bMs8pirikMa9gOiPKpc0gC9SqIlKps77bj/rzPzgBxHgyAGyOwphTJ9ZYXmXfNFP1tdt1MXSQl38JJWx48gTvyH6P+qgWIRKpi2I0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709282822; c=relaxed/simple; bh=mBL8PGXV/JmsDTo9f1jc418xkycUcDbyqjWYl05TJoY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=lH8U7fp0C5Om56taIIfkiF/8trQ1Fu/rPeOY6tpMN6o5Mhiacd73Wwctoph1w0rPn2EaVY3ZXhrxQflpSl/HczA4vsSMITkfpJVba3MC589DlGhoPMD1Y/vzdmFjZqp1BrVPO1iOKufjZiaKPCZvzyvfEB++84RL5wH+0nBzanY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=VDJTUczH; arc=none smtp.client-ip=192.198.163.13 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1709282821; x=1740818821; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=mBL8PGXV/JmsDTo9f1jc418xkycUcDbyqjWYl05TJoY=; b=VDJTUczHd55h2tHmNZgRBOhNbCXfL50NcYIDYz0LtN7gGKk5ob6d98qY ASn2o++ia8fAkZo77Z+AZ6uRkza7pf4dDU4d7pNLx2rcplQ88WQGnyuC9 s1Uca1t6yG2HmWfDepd1b5FoMLBIUzaaJFY5karCg8XxbJB2KpSd3exCK 0HgY+8JslXdnn2fyaoO7ZBVz34wI5csbT3TICdlp4rUSPSaknlzO1o1ZK 2/A+nQQDkXCKiifOxx5IjVfQ6l9VzIILHoN7xTfw6O2K2a3b8+Wi5Ly41 9Glc3d0n4yB8EixCjYMBurgTQ50fH4m8UzFGVWMcTZaNIGPidXs2nh4YI A==; X-IronPort-AV: E=McAfee;i="6600,9927,10999"; a="6760270" X-IronPort-AV: E=Sophos;i="6.06,195,1705392000"; d="scan'208";a="6760270" Received: from orviesa003.jf.intel.com ([10.64.159.143]) by fmvoesa107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Mar 2024 00:47:00 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.06,195,1705392000"; d="scan'208";a="12814752" Received: from turnipsi.fi.intel.com (HELO kekkonen.fi.intel.com) ([10.237.72.44]) by ORVIESA003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Mar 2024 00:46:58 -0800 Received: from kekkonen.localdomain (localhost [127.0.0.1]) by kekkonen.fi.intel.com (Postfix) with SMTP id C8A0911F811; Fri, 1 Mar 2024 10:46:54 +0200 (EET) Date: Fri, 1 Mar 2024 08:46:54 +0000 From: Sakari Ailus To: Markus Elfring Cc: linux-media@vger.kernel.org, kernel-janitors@vger.kernel.org, Andy Shevchenko , Mauro Carvalho Chehab , Tomi Valkeinen , LKML Subject: Re: [PATCH] media: i2c: ds90ub960: Delete duplicate source code in ub960_parse_dt_rxports() Message-ID: References: <79fa4854-976d-4aad-86ac-c156b0c4937e@web.de> 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-Disposition: inline In-Reply-To: <79fa4854-976d-4aad-86ac-c156b0c4937e@web.de> 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. > err_put_links: > fwnode_handle_put(links_fwnode); > -- Regards, Sakari Ailus