Messages in this thread Patch in this message | | | Subject | [PATCH] fs/binfmt_elf.c: fix sparse warning | Date | Thu, 16 Apr 2009 19:44:15 -0400 | From | "H Hartley Sweeten" <> |
| |
Fix sparse warning in fs/binfmt_elf.c.
warning: do-while statement is not a compound statement
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
---
diff --git a/fs/binfmt_elf.c b/fs/binfmt_elf.c index 40381df..9273836 100644 --- a/fs/binfmt_elf.c +++ b/fs/binfmt_elf.c @@ -1407,9 +1407,9 @@ static void fill_auxv_note(struct memelfnote *note, struct mm_struct *mm) { elf_addr_t *auxv = (elf_addr_t *) mm->saved_auxv; int i = 0; - do + do { i += 2; - while (auxv[i - 2] != AT_NULL); + } while (auxv[i - 2] != AT_NULL); fill_note(note, "CORE", NT_AUXV, i * sizeof(elf_addr_t), auxv); }
| |