lib: kstrtox: fix typo in comment
PATCH 1/1 lib: kstrtox: fix typo in comment
Delete one of the double f's in "iff".
Signed-off-by Wilken Gottwalt <[email protected]>
--- lib/kstrtox.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
lib/kstrtox.c +1 -1
@@ -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
Quoted 3 lines · Wilken Gottwalt
Delete one of the double f's in "iff".
Signed-off-by Wilken Gottwalt <[email protected]>
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@@ -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
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".
Signed-off-by Wilken Gottwalt <[email protected]>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@@ -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. */
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
Signed-off-by Wilken Gottwalt <[email protected]>Nope, see:
https://en.wikipedia.org/wiki/If_and_only_ifOh, 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@@ -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