[<prev] [next>] [day] [month] [year] [list]
Message-ID: <BD79186B4FD85F4B8E60E381CAEE1909015F9037@mi8nycmail19.Mi8.com>
Date: Thu, 16 Apr 2009 19:44:15 -0400
From: "H Hartley Sweeten" <hartleys@...ionengravers.com>
To: <linux-kernel@...r.kernel.org>
Subject: [PATCH] fs/binfmt_elf.c: fix sparse warning
Fix sparse warning in fs/binfmt_elf.c.
warning: do-while statement is not a compound statement
Signed-off-by: H Hartley Sweeten <hsweeten@...ionengravers.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);
}
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists