Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3f623eba authored by Fabian Frederick's avatar Fabian Frederick Committed by Linus Torvalds
Browse files

lib/vsprintf.c: fix comparison to bool



Fixing 2 coccinelle warnings:
lib/vsprintf.c:2350:2-9: WARNING: Assignment of bool to 0/1
lib/vsprintf.c:2389:3-10: WARNING: Assignment of bool to 0/1

Signed-off-by: default avatarFabian Frederick <fabf@skynet.be>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent f8eaf298
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -2347,7 +2347,7 @@ int vsscanf(const char *buf, const char *fmt, va_list args)
			break;

		base = 10;
		is_sign = 0;
		is_sign = false;

		switch (*fmt++) {
		case 'c':
@@ -2386,7 +2386,7 @@ int vsscanf(const char *buf, const char *fmt, va_list args)
		case 'i':
			base = 0;
		case 'd':
			is_sign = 1;
			is_sign = true;
		case 'u':
			break;
		case '%':