From: Hannes Eder Date: Tue, 30 Dec 2008 15:49:13 +0000 (+0300) Subject: proc: fix sparse warning X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=dfe6b7d9406c631d697f8bbe1eae5569b808154f;p=linux-beck.git proc: fix sparse warning fs/proc/base.c:312:4: warning: do-while statement is not a compound statement Signed-off-by: Hannes Eder Signed-off-by: Alexey Dobriyan --- diff --git a/fs/proc/base.c b/fs/proc/base.c index eb7b4654d6aa..a9ccc1252731 100644 --- a/fs/proc/base.c +++ b/fs/proc/base.c @@ -306,9 +306,9 @@ static int proc_pid_auxv(struct task_struct *task, char *buffer) struct mm_struct *mm = get_task_mm(task); if (mm) { unsigned int nwords = 0; - do + do { nwords += 2; - while (mm->saved_auxv[nwords - 2] != 0); /* AT_NULL */ + } while (mm->saved_auxv[nwords - 2] != 0); /* AT_NULL */ res = nwords * sizeof(mm->saved_auxv[0]); if (res > PAGE_SIZE) res = PAGE_SIZE;