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

fs/binfmt_elf.c: fix bool assignements

Fix coccinelle warnings.
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>
上级 d1826f2a
...@@ -1686,7 +1686,7 @@ static size_t get_note_info_size(struct elf_note_info *info) ...@@ -1686,7 +1686,7 @@ static size_t get_note_info_size(struct elf_note_info *info)
static int write_note_info(struct elf_note_info *info, static int write_note_info(struct elf_note_info *info,
struct coredump_params *cprm) struct coredump_params *cprm)
{ {
bool first = 1; bool first = true;
struct elf_thread_core_info *t = info->thread; struct elf_thread_core_info *t = info->thread;
do { do {
...@@ -1710,7 +1710,7 @@ static int write_note_info(struct elf_note_info *info, ...@@ -1710,7 +1710,7 @@ static int write_note_info(struct elf_note_info *info,
!writenote(&t->notes[i], cprm)) !writenote(&t->notes[i], cprm))
return 0; return 0;
first = 0; first = false;
t = t->next; t = t->next;
} while (t); } while (t);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册