Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp4360008rdh; Tue, 28 Nov 2023 21:40:24 -0800 (PST) X-Google-Smtp-Source: AGHT+IE+l5Br66wPPjSz+69QM1cZCIOEH5+Dx7KgcQf9RyutyOH3ZdGCZUXPYmAj97zG17kVKS9v X-Received: by 2002:a05:6a21:99a5:b0:18a:d5a8:93e3 with SMTP id ve37-20020a056a2199a500b0018ad5a893e3mr17685880pzb.61.1701236424006; Tue, 28 Nov 2023 21:40:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701236423; cv=none; d=google.com; s=arc-20160816; b=mIMMgO7RqOuat3/4cCzXgTg28fo14tUfS8XLBvpQt47xPYyvBLQkEwjgnGYa6bMh0u TADx4wgtbza+3vlELD/tzIBTnq/DO1aOCC0NhCnZdOq8+q3egRx2Ul/uR7fbsXBueFV5 Z3UXsm6wtykQFSu/OOAH5WB3r/PPU5+lmCcrB0vYWXOS5knliA3lVs40IeX3AYCqlt1h ij5U3uD/r+HgmcSq3vb6m/z8nPO5Rki8S8O/aoKztGCO+GsPbevMGOs44Ly1lMYTl1Tk cCX6Jeodst2QSLY00yz84+xXaYpJEsX1i1y2yEeui8zzhWjWGkYE8/vaXXwcp/BYNBPU OGFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=Pmk0+/LrT8ycjMNq0a8cSGnwxWFEDbzU3lsQse706OI=; fh=FKEpoVkHSz3dlj6QH8IoP4p2clBnxgClrMjRY5+UK3E=; b=JPMYf+mx2vaaTrKvStP350iwnQWK+m7ZJp0e9ygLib9vlW8NupL5Kx1nMvsapmsA20 GuoDReBmJWtLk6KO8QyF2wPL471+jV+XPTEG7cAgYP3QwQUhYFMOVxD7iY48jDmEDMuE aHU6TdHy7Pbwtuf9c76jgvMfErJ0VQhXcEG6Ck3EfML7VwoTV/NcMfs6l3l4SKO4a9jE Pz+0iNDCE1euGmJCrqTc5aEaUlHVn/MCnKBMn/abNm8yyqkyQiSdPj1/Oa9QPg/PGn0X 6oNt4o1jBZUugc0ur79P7O2o2d4LqxZ50DwuEdMbgDprWm4cZfCH2hi0CVuXnUFszs7F AZdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=RWYTHLa8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id h17-20020a17090aa89100b00285d591d93fsi591448pjq.182.2023.11.28.21.40.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Nov 2023 21:40:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=RWYTHLa8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 6226C80C0A6A; Tue, 28 Nov 2023 21:40:22 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376943AbjK2FkM (ORCPT + 99 others); Wed, 29 Nov 2023 00:40:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43564 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229563AbjK2FkL (ORCPT ); Wed, 29 Nov 2023 00:40:11 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4B1301998 for ; Tue, 28 Nov 2023 21:40:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Sender:Reply-To:Content-ID:Content-Description; bh=Pmk0+/LrT8ycjMNq0a8cSGnwxWFEDbzU3lsQse706OI=; b=RWYTHLa8sXVCfhSfDy1U/juJrq V2yQqWMiD7G/BGKwlMbQTuMlnweUse41jdIelzoND0p1CiE/b+ylZminicOMyBtOhC85tX16QRuml Ye8ELnIaVD70Ycw/725jApcyDGY1F6+tCKdx5MF1LINDq2QLleUvhl3wGPCo1zru7NFzZPwLyEHHp EeIYebULStINrgwL/vJFQszrzZbDxgzKS342FJP7DCvUmCrMkgRTes3NF+CZR3acN9zQrQbJaTgZV rCDpvdIL5KdPqtBjtCaY0THle1y9I6YbzM7GBgTJ+PIOtgdY63mPBG+ovmetXwP8SPeCa/tm1pphh EJhoOhaw==; Received: from [50.53.46.231] (helo=[192.168.254.15]) by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1r8DIz-0077Nv-1i; Wed, 29 Nov 2023 05:40:13 +0000 Message-ID: <5e000502-d400-420c-a9f8-40e202a95271@infradead.org> Date: Tue, 28 Nov 2023 21:40:13 -0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] lib: kstrtox: fix typo in comment Content-Language: en-US To: Wilken Gottwalt Cc: linux-kernel@vger.kernel.org, Andrew Morton References: <20231129054834.2ffbe481@posteo.net> From: Randy Dunlap In-Reply-To: <20231129054834.2ffbe481@posteo.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Tue, 28 Nov 2023 21:40:22 -0800 (PST) On 11/28/23 20:48, Wilken Gottwalt wrote: > On Tue, 28 Nov 2023 08:26:03 -0800 > Randy Dunlap wrote: > >> On 11/28/23 00:27, Wilken Gottwalt wrote: >>> Delete one of the double f's in "iff". >>> >>> Signed-off-by: Wilken Gottwalt >> >> 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. >>> */ >> > -- ~Randy