Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp616332lqm; Wed, 1 May 2024 10:17:06 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV22/lXYx69OrD4EqiMCV8eECIQMEYL4dfZViBKLlFVKejoYIAf2b3K1Dx1A3SyJPSkJHGmXaEBKdcqEdL6ju1nsKAe+4o2kECFv27jfw== X-Google-Smtp-Source: AGHT+IFoCb8WMLu/vfc9k0QG6qADmGuLeEfofCidx42aMQAveW/JPma2Q+sgAfR9JKEaMJrtFjE6 X-Received: by 2002:a05:6902:1b12:b0:de4:6122:9fae with SMTP id eh18-20020a0569021b1200b00de461229faemr3697059ybb.64.1714583826336; Wed, 01 May 2024 10:17:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714583826; cv=pass; d=google.com; s=arc-20160816; b=v+031mEZGGHOxxO4gArPbItqBd/x85UcTDYaXb1U5t4T//wmHeO5JSRHeUXyh1nxXw +hcXAzI1aAG/8PH1GOyZIXHiY9GUcDMMv9Xfm/u8g9lIwbRQHvn+Z0CddLQIW+pVUmDS AxLu9likRKNvAQSalPBB9/u+KHAozBQebZcPXl+IJIVloKjCcI5ivhZvOn4xSqap5IQ6 1pIL+DSrc2hV/EKJ307VTLQdgqGalHVktzqvXoevgsMknDKtikP0BztjN7ipi9Eq8hus JGAO6d2ptJIxgnKacbqaDCOgNU8BX/Dds8oszVQgGvN/U+XryoFqJ/rk8PTkgZLdmQw0 ctMA== 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=MOHqyTk2nsRZy88pDJJ/quBzrqb3UUPa7Yn14ZhLib4=; fh=Axfcqov0f/wWofg/esq4RruLNP11/GUBB7uq0fc67xo=; b=F8JkzldEtzpDXr7BOjYsj5csMRlQa+A8pNwFRTgqOGl67Akk8FPPIv9zxKqEJmJNQq Q7by8lHMVccygDsGTLlIoTTv2cCfDP7jQ+8tiNzoWPHehUW4PgAlYTxe6NWNbdbuUUfp bohA0J/9iFhhWUW41ByKNWUmOu3geUapOiNDZx6oIyeV/xd2Th0FnLOBvcyXrUViNlbz SRQ2yFxmVDE/oC+a4BbLQkY19iDxTkzSu3Vf/VKd8JQk2WRKkJSTVRpgqhFK6SAPUA/t yqttWc/cM1uJvOb8cEE7blM5KEIlmKYMreLWjKrXNjOhqvuuciXDGkGRvA9H9kPyH9uJ 4EnA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iVpOppxs; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-165635-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-165635-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id ep11-20020a0561302d8b00b007e503695775si5333976uab.123.2024.05.01.10.17.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 May 2024 10:17:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-165635-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iVpOppxs; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-165635-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-165635-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 0EFDD1C21428 for ; Wed, 1 May 2024 17:17:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DD3E018637; Wed, 1 May 2024 17:16:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="iVpOppxs" Received: from mail-lf1-f51.google.com (mail-lf1-f51.google.com [209.85.167.51]) (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 6713C18039 for ; Wed, 1 May 2024 17:16:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714583819; cv=none; b=IYvyAHN/NFnVUh7uzy54z+ilpewOUPBJG8KbUWyzvirmeOJ34PulpNZ80qwlcvu4CPGSD5IlVumY1jZSfWUhOk0lKenfJUVSXmsPKhCImXyGAi3YpIXT/REvlJ+Iqrj5K1ry/Skp5Nv3cZG04IWJZwM4vM4XmM7CpOJnd36yFho= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714583819; c=relaxed/simple; bh=02BhFBAy4ZX6ytoV+oKn8+uM4s9GylTFH+6SsonvGE8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=QBw5E1df5DQhfcUA5U+BtV2mTuGWq6G8yNkZDZtRGvWTWilkVFxViKQpK8w0u9GIXLM+YdQ/zJ/aArfvXek5rHr/ljoGUcu2qJS6Y3cFBb3ckYr2h7odHUkrJIEG/ibV+pX6fAWuGTusF1IZf+FlmrnZgzICdtb46QLANjqWYwg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=iVpOppxs; arc=none smtp.client-ip=209.85.167.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-lf1-f51.google.com with SMTP id 2adb3069b0e04-51ef64d04b1so345659e87.3 for ; Wed, 01 May 2024 10:16:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1714583815; x=1715188615; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=MOHqyTk2nsRZy88pDJJ/quBzrqb3UUPa7Yn14ZhLib4=; b=iVpOppxsz5ghxxUEB9NfOFKKI+6G8FWE8KMpEIgL0IzcDWO4UZU0AxzNOAubNoopfN wjDM612rx0zN/3xvdmazYR0SfUpXTWhGudu6WKk0hkW3jEUkVEA3CZ1UlmRSoRPZ/6Vg 6jh64wo3h4vc8RtCyuPEogJauoXB7cj9we+zmVBImIlXav+Epi9zhso7KEwFJL8Oa+Fe D5oDbAAGeTOuSvCkxWVy6dZ6tkNo61rsMt3dn65YW4J5gK5gwwAh+GyeiY9KGXdMYwhT QOh0+tIniDa0BMRg+6CaFlTm2JlG1ykwbhZdyw/VV7ozKz3xoHVWT6DaM+O9Xs+DwgDM kLpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714583815; x=1715188615; h=in-reply-to: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=MOHqyTk2nsRZy88pDJJ/quBzrqb3UUPa7Yn14ZhLib4=; b=VdG5qb/OgpE9HErZQulx3oQYDLYLsXbbLclVEIWp21+3LugUwwjaCTWx4lbKeTxwSv a6WIqMdN4p5wKoN0iOFVdkjNSX5mgbkSmqFRVmxdFZGDOniWAg2ceXgK+hM5ixtBbI1a jQ6mGnYfons2byiRhdR9AKUXVyBM9O4AqCiTSQ9ihihkpNdNATsHsvpuEYEE0GQibt/q gpNSNgygRbcEaKrVadVvHBS29+GHTG9q23QDctJ2a76bQmCYF2pFSfK2rH/9gXx6QbeQ 5YTJXxzWOLz9jxSZBwyxbQ4NpnrDTOBwE5HmgV8W8iyUMBLlZa04iknk3sosA5sYvEjs Cbmw== X-Forwarded-Encrypted: i=1; AJvYcCWrnjxQXBLV42uQKKBFA23yM64TFuYvdX5iASOC9iW0so9Wl+CnF2lWCOh10YHBG6Dt3AUU0HNRkUEWhn2fq47sL0NWeMEyCkEhKf68 X-Gm-Message-State: AOJu0YzuK0+2BDsjVHn/0BG8pOKidXjyLC4RSZ1k3a1yCcrdVuVEZRkc 0JmGDldrdM4OXMKRGkDMn2KADQJ6hLNFSblfh3rhwVLTNRqJvpciSM1K980DXKQ= X-Received: by 2002:a05:6512:12c7:b0:51f:196:d217 with SMTP id p7-20020a05651212c700b0051f0196d217mr197144lfg.63.1714583815158; Wed, 01 May 2024 10:16:55 -0700 (PDT) Received: from localhost ([102.222.70.76]) by smtp.gmail.com with ESMTPSA id t10-20020a192d4a000000b0051d5616c3e1sm1524897lft.231.2024.05.01.10.16.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 May 2024 10:16:54 -0700 (PDT) Date: Wed, 1 May 2024 20:16:49 +0300 From: Dan Carpenter To: "Peng Fan (OSS)" Cc: Linus Walleij , Thierry Reding , Jonathan Hunter , Dvorkin Dmitry , Wells Lu , Maxime Coquelin , Alexandre Torgue , Emil Renner Berthing , Jianlong Huang , Hal Feng , Orson Zhai , Baolin Wang , Chunyan Zhang , Viresh Kumar , Shiraz Hashim , soc@kernel.org, Krzysztof Kozlowski , Sylwester Nawrocki , Alim Akhtar , Geert Uytterhoeven , Patrice Chotard , Heiko Stuebner , Damien Le Moal , Ludovic Desroches , Nicolas Ferre , Alexandre Belloni , Claudiu Beznea , Dong Aisheng , Fabio Estevam , Shawn Guo , Jacky Bai , Pengutronix Kernel Team , Chester Lin , Matthias Brugger , Ghennadi Procopciuc , Sean Wang , Matthias Brugger , AngeloGioacchino Del Regno , Sascha Hauer , Andrew Jeffery , Joel Stanley , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-tegra@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com, linux-samsung-soc@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-riscv@lists.infradead.org, linux-mediatek@lists.infradead.org, imx@lists.linux.dev, linux-aspeed@lists.ozlabs.org, openbmc@lists.ozlabs.org, Peng Fan Subject: Re: [PATCH 10/21] pinctrl: st: Use scope based of_node_put() cleanups Message-ID: References: <20240501-pinctrl-cleanup-v1-0-797ceca46e5c@nxp.com> <20240501-pinctrl-cleanup-v1-10-797ceca46e5c@nxp.com> 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: <20240501-pinctrl-cleanup-v1-10-797ceca46e5c@nxp.com> On Wed, May 01, 2024 at 08:56:08PM +0800, Peng Fan (OSS) wrote: > @@ -1224,8 +1221,7 @@ static int st_pctl_dt_parse_groups(struct device_node *np, > grp->pin_conf = devm_kcalloc(dev, npins, sizeof(*grp->pin_conf), GFP_KERNEL); > > if (!grp->pins || !grp->pin_conf) { > - ret = -ENOMEM; > - goto out_put_node; > + return -ENOMEM; > } You could delete the curly braces as well. regards, dan carpenter