Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2826288lqp; Mon, 25 Mar 2024 10:14:05 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUtw7Z/Frkk2tgw+Q0pPBAiZs9YK88qC5KM7lPyzZUSjZU00FhduxB0nSD4FCKYrz0WrdyqpyUPnKab6vJCczRkzTvLgKcI50kUOsecbQ== X-Google-Smtp-Source: AGHT+IFCIvD/2+EzxVENmWx09uQ8r3IjhvGJBbI7UuI9jIEOi6kC+Uc+QdSvDQdfEwVSuaIEGh8s X-Received: by 2002:a05:620a:2ec:b0:788:2e47:b290 with SMTP id a12-20020a05620a02ec00b007882e47b290mr8020188qko.73.1711386845067; Mon, 25 Mar 2024 10:14:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711386845; cv=pass; d=google.com; s=arc-20160816; b=fLqEmiXyCT8pcMY1R+qWuHWfsJevyZTGGWXBqNX78OvTGoOsZeQfXGfYAdLVO+0r5X XlguTRWjRCLVrlvp3+Poup+pffr7zTRYIthzL/tK3/C9zlJJP9wQxl+3SWDaaclJTqG+ GkbkYsI2w/aRC4X0loEgIULsQVmwMcP3Bn6TCBIB3wXCSyp7ufCNotM7+uz3AAqa6mHt bZf8NqTzE3loiUcn945wSX0mZzXBtJ5IAGJ5glDDlj7KA2hDwW3AvD9rUqgiCqzX5qgO If1tvfn8f5uTPBF0EtwthPBAhpJxPt46aREaHTeH8AqSFvpaFWzV+J7gD1/27Wkx0Ex4 c5AQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:organization:references :in-reply-to:message-id:subject:cc:to:from:date:dkim-signature; bh=6xI3oxa/7z/SaAzm5xpMub07mC43yyFXlKvi9b83S68=; fh=CTaadw+dLerLiSB6FoHzkUeak2ehgar7Kra7YSWBL6g=; b=HatL0cNHWqttObtlLI7IXIpFr+cjKSXIlqVEELU2bJDXJuYmMfCD1vtVKtQM7n54aw z56aAIUjT1oxUjsspCvgJKvaWizi+13ybbnPd4Pe5HH9vRGXJxybFQT12NvyRONe/hQ8 D+6Xk1cGYkigAHSNWndaITFxn7rZaKstbplWeewDBR/8pe7aX8t0ZrrqmCIktwuV2VKw YleiNddeMhjJvrFQswZ3maCRzCPVNCa0MZiZiV8uFc/unnfDBVnnNtlhRn5Mhc45QHVo qg/uEH5g86k62ZeOKI4JxJ8c36gmk+NK55eJ96J9MS3FLHHB8Za1eJQK9iNnkrx+YoA4 q0bA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=B4DoWmJv; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-117408-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-117408-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id c25-20020a37e119000000b00789d98587c0si5717640qkm.619.2024.03.25.10.14.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 10:14:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-117408-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=@bootlin.com header.s=gm1 header.b=B4DoWmJv; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-117408-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-117408-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.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 70A391C3ACCD for ; Mon, 25 Mar 2024 17:12:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 50466144D21; Mon, 25 Mar 2024 15:49:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="B4DoWmJv" Received: from relay5-d.mail.gandi.net (relay5-d.mail.gandi.net [217.70.183.197]) (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 3254C1272BB for ; Mon, 25 Mar 2024 15:49:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.197 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711381753; cv=none; b=r4vRRFe0Bz2Z+DE6iijicwjCHbu3xIL3brFCpgV0v/JWHkxRoeJoczEwodlKaz22ZIwXRS0YGKz1w728zMsfUqlTi9smCjZTMGBYrnJdeTLIV6XPHVfi0mugeIrXNfz6HEIjxHXJCUMTf0pTNL+Gex7hAGvMgpYLW5VZ4iSWr8w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711381753; c=relaxed/simple; bh=6xI3oxa/7z/SaAzm5xpMub07mC43yyFXlKvi9b83S68=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=klEyqpv+xfNEqT7xNZOjxhSDVzLJkNyjPl7ONVDEcJ56mLovnLF9h4a38ldsvFoEJuiLVwUcoSpJh6lRXc1ASgdEI/mO9/Z2OiEvQkdBtWQVHdgWQa5Vq9y4i9hNlufY+DGCN7d/1JtPTS3o4WoF/OgZZBCeRVXAQH1wd/GO7wU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=B4DoWmJv; arc=none smtp.client-ip=217.70.183.197 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPSA id 57EAF1C0008; Mon, 25 Mar 2024 15:49:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1711381749; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=6xI3oxa/7z/SaAzm5xpMub07mC43yyFXlKvi9b83S68=; b=B4DoWmJvW09wQ2VZhqZEJHEeiEapLvVpjavzV7e34afNsVTIQE6NnMd5XDeIfE4p/5NayX J1Ym22QC+UelmsfIuox1FKMj6+V8fY2GxkMhP8iI4Ii+ZeOAooRLf9ab5/fO4aOJTcpR7J MaukblEd1oZFBBpLk/172eFjrLoERtPmZ0CDeJtHTcW/xAqWfXSbkwVs/3tod1WPdyzBab CTbhehMgKJbliHIgVbz+4FTKSMeRQP6RsHKWVdIETB+bA0wk4m5MU7IbTMquGMWr7F/bk9 s0GGRZ8ym5ij9JKmT8/UV344PBIgSSFXNxrBv1/YZg17lGZiqbvtfLzkOZU0SA== Date: Mon, 25 Mar 2024 16:49:07 +0100 From: Miquel Raynal To: Andy Shevchenko Cc: linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, Richard Weinberger , Vignesh Raghavendra Subject: Re: [PATCH v1 1/1] mtd: core: Align comment with an action in mtd_otp_nvmem_add() Message-ID: <20240325164907.0c8a89fb@xps-13> In-Reply-To: References: <20240325151150.3368658-1-andriy.shevchenko@linux.intel.com> Organization: Bootlin X-Mailer: Claws Mail 4.1.1 (GTK 3.24.38; x86_64-pc-linux-gnu) 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=UTF-8 Content-Transfer-Encoding: quoted-printable X-GND-Sasl: miquel.raynal@bootlin.com Hi Andy, andriy.shevchenko@linux.intel.com wrote on Mon, 25 Mar 2024 17:28:12 +0200: > On Mon, Mar 25, 2024 at 05:11:50PM +0200, Andy Shevchenko wrote: > > The comment is related to the non-error case, make it more clear > > by inverting the condition. It also makes code neater at the end. =20 >=20 > Just realized that even semantically it's better as it's done here > since we have an error path from which we exceptionally return successes > (in some cases). Tell me if I need to add this to the commit message. >=20 It's fine like that. Thanks, Miqu=C3=A8l