From: Fabian Frederick Date: Wed, 4 Jun 2014 23:12:14 +0000 (-0700) Subject: fs/binfmt_elf.c: fix bool assignements X-Git-Tag: v3.16-rc1~47^2~16^2~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b219e25f8dd9793904ca87c55c76ab8c8931abb9;p=platform%2Fkernel%2Flinux-exynos.git fs/binfmt_elf.c: fix bool assignements Fix coccinelle warnings. Signed-off-by: Fabian Frederick Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/fs/binfmt_elf.c b/fs/binfmt_elf.c index aa3cb62..dabc73a 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);