Message ID | ZWWkeVTvDBQDA_SF@monster.localdomain |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce62:0:b0:403:3b70:6f57 with SMTP id o2csp3762599vqx; Tue, 28 Nov 2023 00:27:51 -0800 (PST) X-Google-Smtp-Source: AGHT+IFanfMrP6kCbOX/qoIdMtne8MRy48aJdXkT5pYbERgBBAKbm/6TZuXZ/otFFJVxgpxACCnA X-Received: by 2002:a05:6808:f89:b0:3b8:4ced:a40b with SMTP id o9-20020a0568080f8900b003b84ceda40bmr19885733oiw.41.1701160071235; Tue, 28 Nov 2023 00:27:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701160071; cv=none; d=google.com; s=arc-20160816; b=XfnSG3fRfYOB4gCrZofiep7fw2Qbn1pQdODFMy8CtPMChwuqUZcKzneuozqGVJSCct 0drjrVTvgsPVNEeFz4WPGHSHH33gN2buveJzdLfuZKRECQkEvotBUNqDec2iYWDXaImr Mh4gRndAq4GtWLo66+zVofzVP8XaGH6/cTahFyc7n1uhB7Vupcz3MGDgOQzg7ATBLBSM oSGSorWcRdBWuzksdUk8gMZbvalRcPEQ8XXQ6OXoTEM3yojWIWweCZf2hkJiVESF/YDx ptASWRpTMUt5NKGpirw9Oy4HZyUnWbIWTxSWAembP9JJZ4TnW+Knv2tETHqm19GtAzWN IdWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date:dkim-signature; bh=P1RkE9hnP+Bqjv/zMSBHgKBx3pXXGQ02/2YDsF8G2Hs=; fh=zrRRYDghMwqvOlw/x5sN5DH89euLtPw2eL+Mcd+zl1w=; b=M6MgAb9BhzHpF6ImSDLkuqZDw4mW4ZN4/CoCzbE35t+DHSofpEtJexywUqyM/LY0nn JsymaaUjeIdbHuS+JwvRRNdDOHmLZBHfUyjGh16nCOQi5kK7MaacGFVda78ah9VSt1/N cNZVI2WHlu4RGY1zyYoISFpuceS1h6sT0+rr5ISpn1D9I4ehJESHpcQXb/QbiYODojXG V89HA3fSUZJnwAt9rDewWQT1kmQxg8KO1awtFPTzacE5smMQ4uiN9zkOkURw8R+QoK3E 8EFmiCL5EEJ2pqewpI+NOa34Z5fUrT3d9UtFZbu3q9JLTS5hDDHUgO7xSyxrKDR4Dj48 DRfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=IYe0JnYy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id 27-20020a630d5b000000b005c21d7d1114si12119925pgn.818.2023.11.28.00.27.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Nov 2023 00:27:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=IYe0JnYy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 82F70809A7B4; Tue, 28 Nov 2023 00:27:47 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343941AbjK1I1i (ORCPT <rfc822;toshivichauhan@gmail.com> + 99 others); Tue, 28 Nov 2023 03:27:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58626 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229737AbjK1I1h (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 28 Nov 2023 03:27:37 -0500 Received: from mout02.posteo.de (mout02.posteo.de [185.67.36.66]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6444B91 for <linux-kernel@vger.kernel.org>; Tue, 28 Nov 2023 00:27:42 -0800 (PST) Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id C5FE0240103 for <linux-kernel@vger.kernel.org>; Tue, 28 Nov 2023 09:27:39 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1701160059; bh=s126nyyeqAhDr0wZnrkk/1Osln9ka5MImtMch8+JwkM=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version: Content-Disposition:From; b=IYe0JnYyQ02t/4R4+25zF1oQujUUwJQTcTd1mny7PWZZ/qaxsIwx0dW00TY6HIhR6 BsXJMOdHmX+WsS3SwhZatheLnLav9jcREISi/Qko8x0n34aPEHOjzDa4YAQs5j7cCV aSucv1OjuN3/qbD3Iyx+M4y1yw7PChPi1i7lMCoMkYEm4aXYCC0xk1MwepSbhnTr2/ JRqYNCdwM3zmvtom8GSEBR80eBZzkifZomWqsR67mAjvAqlwclztkOI8n7sruMDUeS 3J+kHyGRRZra8xe1wGSp2TTq4fm8EBrwF2lfPnuRApZwwS9uNgfYml0qVfxX3fNxil BNSXiULjCOzWg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4SfbDW113Bz6twS; Tue, 28 Nov 2023 09:27:39 +0100 (CET) Date: Tue, 28 Nov 2023 08:27:37 +0000 From: Wilken Gottwalt <wilken.gottwalt@posteo.net> To: linux-kernel@vger.kernel.org Cc: Andrew Morton <akpm@linux-foundation.org> Subject: [PATCH] lib: kstrtox: fix typo in comment Message-ID: <ZWWkeVTvDBQDA_SF@monster.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Tue, 28 Nov 2023 00:27:47 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1783795622992159981 X-GMAIL-MSGID: 1783795622992159981 |
Series |
lib: kstrtox: fix typo in comment
|
|
Commit Message
Wilken Gottwalt
Nov. 28, 2023, 8:27 a.m. UTC
Delete one of the double f's in "iff".
Signed-off-by: Wilken Gottwalt <wilken.gottwalt@posteo.net>
---
lib/kstrtox.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On 11/28/23 00:27, Wilken Gottwalt wrote: > Delete one of the double f's in "iff". > > Signed-off-by: Wilken Gottwalt <wilken.gottwalt@posteo.net> Nope, see: https://en.wikipedia.org/wiki/If_and_only_if > --- > lib/kstrtox.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/lib/kstrtox.c b/lib/kstrtox.c > index d586e6af5e5a..b0a9fdce15b3 100644 > --- a/lib/kstrtox.c > +++ b/lib/kstrtox.c > @@ -340,7 +340,7 @@ EXPORT_SYMBOL(kstrtos8); > * @s: input string > * @res: result > * > - * This routine returns 0 iff the first character is one of 'YyTt1NnFf0', or > + * This routine returns 0 if the first character is one of 'YyTt1NnFf0', or > * [oO][NnFf] for "on" and "off". Otherwise it will return -EINVAL. Value > * pointed to by res is updated upon finding a match. > */
On Tue, 28 Nov 2023 08:26:03 -0800 Randy Dunlap <rdunlap@infradead.org> wrote: > On 11/28/23 00:27, Wilken Gottwalt wrote: > > Delete one of the double f's in "iff". > > > > Signed-off-by: Wilken Gottwalt <wilken.gottwalt@posteo.net> > > Nope, see: > https://en.wikipedia.org/wiki/If_and_only_if Oh, interesting. Never thought of this. Though, now I wonder: How often do such "fixes" happen? > > --- > > lib/kstrtox.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/lib/kstrtox.c b/lib/kstrtox.c > > index d586e6af5e5a..b0a9fdce15b3 100644 > > --- a/lib/kstrtox.c > > +++ b/lib/kstrtox.c > > @@ -340,7 +340,7 @@ EXPORT_SYMBOL(kstrtos8); > > * @s: input string > > * @res: result > > * > > - * This routine returns 0 iff the first character is one of 'YyTt1NnFf0', or > > + * This routine returns 0 if the first character is one of 'YyTt1NnFf0', or > > * [oO][NnFf] for "on" and "off". Otherwise it will return -EINVAL. Value > > * pointed to by res is updated upon finding a match. > > */ >
On 11/28/23 20:48, Wilken Gottwalt wrote: > On Tue, 28 Nov 2023 08:26:03 -0800 > Randy Dunlap <rdunlap@infradead.org> wrote: > >> On 11/28/23 00:27, Wilken Gottwalt wrote: >>> Delete one of the double f's in "iff". >>> >>> Signed-off-by: Wilken Gottwalt <wilken.gottwalt@posteo.net> >> >> Nope, see: >> https://en.wikipedia.org/wiki/If_and_only_if > > Oh, interesting. Never thought of this. Though, now I wonder: How often do such > "fixes" happen? I think that I have seen 2 other patches for "iff", but I probably have missed some. >>> --- >>> lib/kstrtox.c | 2 +- >>> 1 file changed, 1 insertion(+), 1 deletion(-) >>> >>> diff --git a/lib/kstrtox.c b/lib/kstrtox.c >>> index d586e6af5e5a..b0a9fdce15b3 100644 >>> --- a/lib/kstrtox.c >>> +++ b/lib/kstrtox.c >>> @@ -340,7 +340,7 @@ EXPORT_SYMBOL(kstrtos8); >>> * @s: input string >>> * @res: result >>> * >>> - * This routine returns 0 iff the first character is one of 'YyTt1NnFf0', or >>> + * This routine returns 0 if the first character is one of 'YyTt1NnFf0', or >>> * [oO][NnFf] for "on" and "off". Otherwise it will return -EINVAL. Value >>> * pointed to by res is updated upon finding a match. >>> */ >> >
diff --git a/lib/kstrtox.c b/lib/kstrtox.c index d586e6af5e5a..b0a9fdce15b3 100644 --- a/lib/kstrtox.c +++ b/lib/kstrtox.c @@ -340,7 +340,7 @@ EXPORT_SYMBOL(kstrtos8); * @s: input string * @res: result * - * This routine returns 0 iff the first character is one of 'YyTt1NnFf0', or + * This routine returns 0 if the first character is one of 'YyTt1NnFf0', or * [oO][NnFf] for "on" and "off". Otherwise it will return -EINVAL. Value * pointed to by res is updated upon finding a match. */