mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] lib: add explicit break in kstrtox/strtox
@ 2025-03-25 15:56 Jules Maselbas
  2025-03-27  7:43 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Jules Maselbas @ 2025-03-25 15:56 UTC (permalink / raw)
  To: barebox; +Cc: Jules Maselbas

Signed-off-by: Jules Maselbas <jmaselbas@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




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

* Re: [PATCH] lib: add explicit break in kstrtox/strtox
  2025-03-25 15:56 [PATCH] lib: add explicit break in kstrtox/strtox Jules Maselbas
@ 2025-03-27  7:43 ` Sascha Hauer
  0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2025-03-27  7:43 UTC (permalink / raw)
  To: barebox, Jules Maselbas


On Tue, 25 Mar 2025 16:56:14 +0100, Jules Maselbas wrote:
> 


Applied, thanks!

[1/1] lib: add explicit break in kstrtox/strtox
      https://git.pengutronix.de/cgit/barebox/commit/?id=9dff02309045 (link may not be stable)

Best regards,
-- 
Sascha Hauer <s.hauer@pengutronix.de>




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

end of thread, other threads:[~2025-03-27  7:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-03-25 15:56 [PATCH] lib: add explicit break in kstrtox/strtox Jules Maselbas
2025-03-27  7:43 ` Sascha Hauer

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