lkml.org 
[lkml]   [2009]   [Apr]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject[PATCH] fs/binfmt_elf.c: fix sparse warning
Date
From
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);
}


\
 
 \ /
  Last update: 2009-04-17 01:47    [W:0.098 / U:0.072 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site