Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp1482515lqt; Sat, 20 Apr 2024 18:28:11 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUSUbMC1QsNlcGxKEJi2tTZb+8gZo7oAiA41h32VdarHdhgClLAwbALclUKTRFhCC3Ll1maMvOFhb2klABMVemTPD2YIIYPYMy2KHDRlw== X-Google-Smtp-Source: AGHT+IH25FwYi1t1Y2o7vAJnJ4gxlxrj/4z6WeGaSv7lnA0qKC1QSMSfXqTqi9G537U6G4Hp1kWP X-Received: by 2002:a17:902:6f08:b0:1e5:e5fb:709b with SMTP id w8-20020a1709026f0800b001e5e5fb709bmr7314786plk.9.1713662890740; Sat, 20 Apr 2024 18:28:10 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713662890; cv=pass; d=google.com; s=arc-20160816; b=LmFr+q9+sH1ByaGw/3H31G3Ud97hqHb4nCrIVJolsrrqd5uin1FCkAOzhuCUblQfJd R3Jh7yhOHRYhgQDIupKiexDaJeWSca46tuhJPZO/I4a0gEhmYnVa/hKdV/83eJyJIbH9 ossB4+NIFb3DXusfMqvRPKJ3L5w+BegNYuTcnK8IG0W2YLbDuzYfLZQhTh0kxOtJRRW2 SK6unH2SBPEmonPE0H+5n7gyPsOunQLmclf1w5bbg4sMrHbC+w9FqaPSag8g1TIX2tdJ Jp8MrB9K6jZD5BEsrdbU4HlVXylaWS772141EY5nQwM9pawGxoIieFivWJFjZGVuqTM0 MA1Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:content-transfer-encoding:references:in-reply-to:date:cc :to:from:subject:message-id; bh=Soikanq+gC4+vwqq7RXHUMwKO1n5ntoaUNaYOM0a2Yk=; fh=Ij29LA5gxiBogMAVM/LVxrgy8OxC6F7BCap1AUp2jz0=; b=k4kboFpGkVfXt9OFixigoXDAtRnZs5P69HO8k3O7b+KxiWfDEdEQ+hRtWRkKaVoJX6 2p2vRP+/7JTv5Kuib92dP/4ydjizR75MPsj+3kBgN+eHLBjXPps6Y+Cum9aiNUrmV1R2 arY4sTLOr/5unMDah5A5SrcK4Jh30RfqN0emNmym3g314vjT91ykPLhT3yo9Zdvmv2Oh 40rehc+nh5jK0EhqZhE0H731BNWvM08HAuy0vlAQAlDKwoffnbIqIe5rVGv+NmYCLAea HZUaNOwj83q+Vx1f3DHoD8VLsNhzVYJGBjMD3HZhcCx7/V3XIPGDRGVpm75nfEHGgNvO 79LA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=perches.com); spf=pass (google.com: domain of linux-kernel+bounces-152428-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-152428-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id b13-20020a170902650d00b001e435d95c63si5305460plk.315.2024.04.20.18.28.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 20 Apr 2024 18:28:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-152428-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=perches.com); spf=pass (google.com: domain of linux-kernel+bounces-152428-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-152428-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 2ED582811EB for ; Sun, 21 Apr 2024 01:28:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C84574431; Sun, 21 Apr 2024 01:28:00 +0000 (UTC) Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) (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 CFB931373; Sun, 21 Apr 2024 01:27:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=216.40.44.14 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713662880; cv=none; b=ShonlKslQhVYkz8siDuHXWlb5pLWJRyjBmOZ56ZiDXqvbVXkWXpaJO161eOYDQXxJPAf6XJY8+6Z73XkDPNNk8O29Fcu0cySnLvVEsPot4LBLzCPqMBNCgi3x/mYzeBZrOiJYtz6ifZhfUr1ELBck0kl9xxkvcNNxSD40kh7S0U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713662880; c=relaxed/simple; bh=vFRK9h+5k+ZVFw7k1Zs8oDgehYtBauqWEnk9WLUMUC8=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=OgaICpwrYcHP6V7ESaIVhAF8/q+09rxbVW9j5n8MOhNhI7ejQGEkyXSfSBiBzac+GQcseRPUm9F43zyYf2DaPGsMMOVA/l/TbR/hPKZUBGqKK/IcXxNqtmTIAziTl4lONM47oykZDG4B616XDI6pMI6WJRERmLHeAcKDxim96ig= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=perches.com; spf=pass smtp.mailfrom=perches.com; arc=none smtp.client-ip=216.40.44.14 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=perches.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=perches.com Received: from omf08.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 7299EA070F; Sun, 21 Apr 2024 01:27:48 +0000 (UTC) Received: from [HIDDEN] (Authenticated sender: joe@perches.com) by omf08.hostedemail.com (Postfix) with ESMTPA id 84AD520026; Sun, 21 Apr 2024 01:27:45 +0000 (UTC) Message-ID: Subject: Re: [PATCH v2] remove indentation for common path [linux-next] From: Joe Perches To: sundar , heikki.krogerus@linux.intel.com, gregkh@linuxfoundation.org, neil.armstrong@linaro.org, dmitry.baryshkov@linaro.org, u.kleine-koenig@pengutronix.de, christophe.jaillet@wanadoo.fr Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, skhan@linuxfoundation.org, javier.carrasco.cruz@gmail.com Date: Sat, 20 Apr 2024 18:27:44 -0700 In-Reply-To: References: <20240420164927.15290-1-prosunofficial@gmail.com> Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.48.4 (3.48.4-1.fc38) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Rspamd-Queue-Id: 84AD520026 X-Stat-Signature: mioty8ocidms19zdhjpkx3hob4ci8buy X-Rspamd-Server: rspamout01 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Session-ID: U2FsdGVkX18w+iwXIEr/hC5cNcQUEvVgTEdhIRawB/o= X-HE-Tag: 1713662865-243079 X-HE-Meta: U2FsdGVkX19JHw36O2wr43FqbDqzmzqY8/buZSTBJF/qvlUJLz9iKI3b7sDHmmHBhvGNi0cYnf7aCGuxxH1LlDv6O4r+IaNC3TBFUOYqAyr1FDCu0syWDmg+sLmRK8My4doE2bQZQ15rDI2fd63vL0B2P9hceDDlRW0lwJcrtsrjdNxn0hIDnlQNVLARYKiaqf9JoFIpZt38AGW5QcweXFsyrYfn1y83bdgk0etgjnSM6dlohgHk9T4b4xBhq8WhbrsrzYLAy/boeAqpMreRB/chepm4V59czDhWEhnZS0trbsey6NYOKxugcaHBydgQ On Sun, 2024-04-21 at 06:13 +0530, sundar wrote: > On 20/04/24 22:37, Joe Perches wrote: > > On Sat, 2024-04-20 at 22:19 +0530, sundar wrote: > >=20 > >=20 > > > ``` > > @@ -321,35 +321,37 @@ static int nb7vpq904m_parse_data_lanes_mapping(st= ruct nb7vpq904m *nb7) > > =20 > > ep =3D of_graph_get_endpoint_by_regs(nb7->client->dev.of_node, 1, 0)= ; > > =20 > > - if (ep) { > > - ret =3D of_property_count_u32_elems(ep, "data-lanes"); > > - if (ret =3D=3D -EINVAL) > > - /* Property isn't here, consider default mapping */ > > - goto out_done; > > - if (ret < 0) > > - goto out_error; > > - > > - if (ret !=3D DATA_LANES_COUNT) { > > - dev_err(&nb7->client->dev, "expected 4 data lanes\n"); > > - ret =3D -EINVAL; > > - goto out_error; > > - } > > + if (!ep) > > + return 0; > > ``` > >=20 > >=20 > > Not equivalent code as the out_error: > >=20 > > of_node_put(ep); > >=20 > > isn't done > >=20 > >=20 >=20 > Hi joe perches, >=20 > If ep is null, I believe we dont need to call of_node_put. Because=20 > passing null pointer to of_node_put() make no difference. >=20 > In of_node_put() definition, if pointer is null, there is no operation. >=20 Fine, but you should explain that in the changelog and not make reviewers look it up.