[PATCH] lib: add explicit break in kstrtox/strtox
Jules Maselbas
jmaselbas at zdiv.net
Tue Mar 25 08:56:14 PDT 2025
Signed-off-by: Jules Maselbas <jmaselbas at zdiv.net>
---
lib/kstrtox.c | 1 +
lib/strtox.c | 1 +
2 files changed, 2 insertions(+)
diff --git a/lib/kstrtox.c b/lib/kstrtox.c
index 0e4b590531..2052ee94cb 100644
--- a/lib/kstrtox.c
+++ b/lib/kstrtox.c
@@ -357,6 +357,7 @@ int kstrtobool(const char *s, bool *res)
default:
break;
}
+ break;
default:
break;
}
diff --git a/lib/strtox.c b/lib/strtox.c
index b11cc8c969..679a747173 100644
--- a/lib/strtox.c
+++ b/lib/strtox.c
@@ -105,6 +105,7 @@ s64 simple_strtofract(const char *cp, char **endp, u32 division)
fallthrough;
case '+':
cp++;
+ break;
}
if (!isdigit(*cp))
--
2.48.1
More information about the barebox
mailing list