From: Fabian Frederick Date: Thu, 22 May 2014 00:43:44 +0000 (+1000) Subject: fs/binfmt_elf.c: fix bool assignements X-Git-Tag: next-20140530~2^2~147 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=22427318bc7335fc17ecd072b356951282f6f9c6;p=karo-tx-linux.git fs/binfmt_elf.c: fix bool assignements Fix coccinelle warnings. Signed-off-by: Fabian Frederick Signed-off-by: Andrew Morton --- diff --git a/fs/binfmt_elf.c b/fs/binfmt_elf.c index aa3cb626671e..dabc73ab900f 100644 --- a/fs/binfmt_elf.c +++ b/fs/binfmt_elf.c @@ -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, struct coredump_params *cprm) { - bool first = 1; + bool first = true; struct elf_thread_core_info *t = info->thread; do { @@ -1710,7 +1710,7 @@ static int write_note_info(struct elf_note_info *info, !writenote(&t->notes[i], cprm)) return 0; - first = 0; + first = false; t = t->next; } while (t);