diff options
author | Fabian Frederick <fabf@skynet.be> | 2014-06-04 19:12:14 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-06-04 19:54:21 -0400 |
commit | b219e25f8dd9793904ca87c55c76ab8c8931abb9 (patch) | |
tree | ffbc2f61f5b7cf07c492607ed63b82cffb707ad2 /fs/binfmt_elf.c | |
parent | d1826f2a3d64f76b18e9ac4a6874c5db5be24750 (diff) |
fs/binfmt_elf.c: fix bool assignements
Fix coccinelle warnings.
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>
Diffstat (limited to 'fs/binfmt_elf.c')
-rw-r--r-- | fs/binfmt_elf.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) | |||
1686 | static int write_note_info(struct elf_note_info *info, | 1686 | static int write_note_info(struct elf_note_info *info, |
1687 | struct coredump_params *cprm) | 1687 | struct coredump_params *cprm) |
1688 | { | 1688 | { |
1689 | bool first = 1; | 1689 | bool first = true; |
1690 | struct elf_thread_core_info *t = info->thread; | 1690 | struct elf_thread_core_info *t = info->thread; |
1691 | 1691 | ||
1692 | do { | 1692 | do { |
@@ -1710,7 +1710,7 @@ static int write_note_info(struct elf_note_info *info, | |||
1710 | !writenote(&t->notes[i], cprm)) | 1710 | !writenote(&t->notes[i], cprm)) |
1711 | return 0; | 1711 | return 0; |
1712 | 1712 | ||
1713 | first = 0; | 1713 | first = false; |
1714 | t = t->next; | 1714 | t = t->next; |
1715 | } while (t); | 1715 | } while (t); |
1716 | 1716 | ||