Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp3480388rdb; Wed, 27 Dec 2023 08:39:09 -0800 (PST) X-Google-Smtp-Source: AGHT+IE0upzFhdKd++gcP6EvEHK8xjgVgAI5K3sx/Qciq30XftE+ncL2MxMLMcfbNvSST46v+rLR X-Received: by 2002:a05:6214:21c2:b0:67f:48e0:6725 with SMTP id d2-20020a05621421c200b0067f48e06725mr15702580qvh.43.1703695148728; Wed, 27 Dec 2023 08:39:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703695148; cv=none; d=google.com; s=arc-20160816; b=TvAbwhF7/HSzWxOl8X/pUUoc+W4aVawCOg/lTufwgZRzpScT9yyhKiKwWD0nJTW+LC fuf3DDLbKr0P15Pmb4IK2yVQfHMJAVgXIAFEBERa+/ni6wYuSd5Ze5+xFse3Zmuryf8t VR6/zvtcCjDfZsw44j52SHFDPsidNtj78lZK+25Z8wT/gsAmukFuORHeBAramPA2w63W 6mxIS4eZPs8GF8i173BQLnG2L510tbXNw9E2WaaLjRxiLMUuQeFbl7MA7ZhSiuCw61c1 gvK+Sw8OeCCHuzPmJLZWWPx1TKeNHOi0QtZAi6Ff94KCpCjE9st1m+d6DRph7Q6okX8u 68Sg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=organization: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=hxxMeVt8guteAFw6qWbvjxZJuyk2ydpZa/3j8/g52uU=; fh=faSp/ll3h0a1uAEBOrKd40r3vFZdVna7cC51GyY7hLc=; b=u0YuMP4DRi+5+P5XuWVAZwUQDPPZraUP/Yn1rvJR1+x3Vwf888DfRcndW8f0D3wlPc +CEEbUjuHKUagrt3wXzInij1RuHPwKye3esF8VAY1PpZGK1g1IwzLT/5hqY1qDqWALuG v1oyPKHH/TMLATtXQ+Y6VFmGi+S/avw/XNVk4ETO6Bo0pEHREWf65C0AHpn63JZQsAoQ uwaYzHpiBi5K4l2rR8YWY3UTEWbRtX2aUKMR9qu+BEv3P1xx+uDbyWwBJKC/aS2/lRV9 m1ug7hxdOT5PxrAwriCw93u1tv4DrocJ+oqKFrNybUf3yC7lK8hjYjEtQkAhDsRbCp98 XUlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=d6AfPwTg; spf=pass (google.com: domain of linux-kernel+bounces-12142-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12142-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id de11-20020a05620a370b00b00773dc958046si15776416qkb.258.2023.12.27.08.39.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Dec 2023 08:39:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-12142-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=d6AfPwTg; spf=pass (google.com: domain of linux-kernel+bounces-12142-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12142-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 75C5B1C219B2 for ; Wed, 27 Dec 2023 16:39:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AF6F645946; Wed, 27 Dec 2023 16:38:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="d6AfPwTg" X-Original-To: linux-kernel@vger.kernel.org Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.10]) (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 7DA0D1E529; Wed, 27 Dec 2023 16:38:56 +0000 (UTC) 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=1703695137; x=1735231137; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=tCXv9QMQM3EUDowZwDiCOGywQdITNJJvAjpDRRmMORE=; b=d6AfPwTg+uKA7bhMpHMJiuCWhm0ZfzLPKS58NsjlIN2l8kha+M82iClb K0FK8dzudmrtQZmHJrrnz8B6uQWfEx/KOEa4cY+QSdvGeovJmXcQWRNR/ D8FCAwnDnt9hHoGJVJRAppmYI3ki/sVegNCDcBdIxGUuK8+TLXgvqssjc yJZmtQrgLbF1sSGXHmGZR43a37ZcMuzIY6EZcuJ6vSI0fgq5kIN9rtY3Y DE0GekaloERJ5XtCXoeLum5AdTJ+CQZSrWmdOwt2SgVM8FTrsr1BbTZYj SmgrBCIy/zZu0k6AEFAp+QGWjAczetPLekkUpzG7WKZaj4x4Brvl9wv6W A==; X-IronPort-AV: E=McAfee;i="6600,9927,10936"; a="3748665" X-IronPort-AV: E=Sophos;i="6.04,309,1695711600"; d="scan'208";a="3748665" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmvoesa104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Dec 2023 08:38:56 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10936"; a="921876930" X-IronPort-AV: E=Sophos;i="6.04,309,1695711600"; d="scan'208";a="921876930" Received: from smile.fi.intel.com ([10.237.72.54]) by fmsmga001.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Dec 2023 08:38:52 -0800 Received: from andy by smile.fi.intel.com with local (Exim 4.97) (envelope-from ) id 1rIWvh-00000009StU-3kO5; Wed, 27 Dec 2023 18:38:49 +0200 Date: Wed, 27 Dec 2023 18:38:49 +0200 From: Andy Shevchenko To: Markus Elfring Cc: linux-omap@vger.kernel.org, linux-clk@vger.kernel.org, kernel-janitors@vger.kernel.org, Claudiu Beznea , Michael Turquette , Rob Herring , Stephen Boyd , Tero Kristo , Tony Lindgren , LKML , cocci@inria.fr Subject: Re: [PATCH 01/10] clk: ti: Less function calls in of_omap2_apll_setup() after error detection Message-ID: References: <20849a8e-e0f5-46df-ad8a-9eae6cbe337b@web.de> <422c6249-31ac-410e-911d-ec25aeee126a@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: <422c6249-31ac-410e-911d-ec25aeee126a@web.de> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo On Sun, Dec 24, 2023 at 05:36:57PM +0100, Markus Elfring wrote: > From: Markus Elfring > Date: Sun, 24 Dec 2023 11:15:27 +0100 > > The kfree() function was called in up to three cases by > the of_omap2_apll_setup() function during error handling > even if the passed variable contained a null pointer. > This issue was detected by using the Coccinelle software. > * Split a condition check. > > * Adjust jump targets. > > * Delete three initialisations which became unnecessary > with this refactoring. Instead, make use of cleanup.h. -- With Best Regards, Andy Shevchenko