public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] lib: kstrtox: fix typo in comment
@ 2023-11-28  8:27 Wilken Gottwalt
  2023-11-28 16:26 ` Randy Dunlap
  0 siblings, 1 reply; 4+ messages in thread
From: Wilken Gottwalt @ 2023-11-28  8:27 UTC (permalink / raw)
  To: linux-kernel; +Cc: Andrew Morton

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(-)

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.
  */
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] lib: kstrtox: fix typo in comment
  2023-11-28  8:27 [PATCH] lib: kstrtox: fix typo in comment Wilken Gottwalt
@ 2023-11-28 16:26 ` Randy Dunlap
  2023-11-29  4:48   ` Wilken Gottwalt
  0 siblings, 1 reply; 4+ messages in thread
From: Randy Dunlap @ 2023-11-28 16:26 UTC (permalink / raw)
  To: Wilken Gottwalt, linux-kernel; +Cc: Andrew Morton



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.
>   */

-- 
~Randy

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] lib: kstrtox: fix typo in comment
  2023-11-28 16:26 ` Randy Dunlap
@ 2023-11-29  4:48   ` Wilken Gottwalt
  2023-11-29  5:40     ` Randy Dunlap
  0 siblings, 1 reply; 4+ messages in thread
From: Wilken Gottwalt @ 2023-11-29  4:48 UTC (permalink / raw)
  To: Randy Dunlap; +Cc: linux-kernel, Andrew Morton

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.
> >   */
> 


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] lib: kstrtox: fix typo in comment
  2023-11-29  4:48   ` Wilken Gottwalt
@ 2023-11-29  5:40     ` Randy Dunlap
  0 siblings, 0 replies; 4+ messages in thread
From: Randy Dunlap @ 2023-11-29  5:40 UTC (permalink / raw)
  To: Wilken Gottwalt; +Cc: linux-kernel, Andrew Morton



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.
>>>   */
>>
> 

-- 
~Randy

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-11-29  5:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-28  8:27 [PATCH] lib: kstrtox: fix typo in comment Wilken Gottwalt
2023-11-28 16:26 ` Randy Dunlap
2023-11-29  4:48   ` Wilken Gottwalt
2023-11-29  5:40     ` Randy Dunlap

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox