Skip to contentSkip to conversation

lib: kstrtox: fix typo in comment

PATCH In review Wilken Gottwalt 2 participants 4 messages Nov 28, 2023 – Nov 29, 2023 Library code

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 lib: kstrtox: fix typo in comment

Delete one of the double f's in "iff".

---
 lib/kstrtox.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/kstrtox.c +1 -1
index d586e6af5e5a..b0a9fdce15b3 100644
@@ -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.
  */
Signature · 1 line
2.43.0
#1 lore raw
Quoted 3 lines · Wilken Gottwalt

Delete one of the double f's in "iff".

Nope, see:
https://en.wikipedia.org/wiki/If_and_only_if

Quoted 17 lines
---
 lib/kstrtox.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/kstrtox.c +1 -1
index d586e6af5e5a..b0a9fdce15b3 100644
@@ -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.
  */
Signature · 1 line
~Randy
#2 lore raw
Quoted 7 lines · On Tue, 28 Nov 2023 08:26:03 -0800 Randy Dunlap <[email protected]> wrote:
Quoted 3 lines · Wilken Gottwalt

Delete one of the double f's in "iff".

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?

Quoted 18 lines
Quoted 17 lines
---
 lib/kstrtox.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/kstrtox.c +1 -1
index d586e6af5e5a..b0a9fdce15b3 100644
@@ -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.
  */
#3 lore raw
Quoted 6 lines · Wilken Gottwalt
Quoted 3 lines · On Tue, 28 Nov 2023 08:26:03 -0800 Randy Dunlap <[email protected]> wrote:
Quoted 2 lines · Wilken Gottwalt

Delete one of the double f's in "iff".

Quoted 7 lines
Quoted 4 lines
Quoted 1 line

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.

Quoted 19 lines
Quoted 18 lines
Quoted 17 lines
---
 lib/kstrtox.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/kstrtox.c +1 -1
index d586e6af5e5a..b0a9fdce15b3 100644
@@ -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.
  */
Signature · 1 line
~Randy