mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Jules Maselbas <jmaselbas@zdiv.net>
To: barebox@lists.infradead.org
Cc: Jules Maselbas <jmaselbas@zdiv.net>
Subject: [PATCH] lib: add explicit break in kstrtox/strtox
Date: Tue, 25 Mar 2025 16:56:14 +0100	[thread overview]
Message-ID: <20250325155614.32678-1-jmaselbas@zdiv.net> (raw)

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




             reply	other threads:[~2025-03-25 16:05 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-03-25 15:56 Jules Maselbas [this message]
2025-03-27  7:43 ` Sascha Hauer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250325155614.32678-1-jmaselbas@zdiv.net \
    --to=jmaselbas@zdiv.net \
    --cc=barebox@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox