提交 3f623eba 编写于 作者: F Fabian Frederick 提交者: Linus Torvalds

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: NFabian Frederick <fabf@skynet.be>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 f8eaf298
...@@ -2347,7 +2347,7 @@ int vsscanf(const char *buf, const char *fmt, va_list args) ...@@ -2347,7 +2347,7 @@ int vsscanf(const char *buf, const char *fmt, va_list args)
break; break;
base = 10; base = 10;
is_sign = 0; is_sign = false;
switch (*fmt++) { switch (*fmt++) {
case 'c': case 'c':
...@@ -2386,7 +2386,7 @@ int vsscanf(const char *buf, const char *fmt, va_list args) ...@@ -2386,7 +2386,7 @@ int vsscanf(const char *buf, const char *fmt, va_list args)
case 'i': case 'i':
base = 0; base = 0;
case 'd': case 'd':
is_sign = 1; is_sign = true;
case 'u': case 'u':
break; break;
case '%': case '%':
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册