Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Fabian Frederick and committed by
Linus Torvalds
3f623eba f8eaf298

+2 -2
+2 -2
lib/vsprintf.c
··· 2347 2347 break; 2348 2348 2349 2349 base = 10; 2350 - is_sign = 0; 2350 + is_sign = false; 2351 2351 2352 2352 switch (*fmt++) { 2353 2353 case 'c': ··· 2386 2386 case 'i': 2387 2387 base = 0; 2388 2388 case 'd': 2389 - is_sign = 1; 2389 + is_sign = true; 2390 2390 case 'u': 2391 2391 break; 2392 2392 case '%':