diff options
author | Hannes Eder <hannes@hanneseder.net> | 2008-12-30 10:49:13 -0500 |
---|---|---|
committer | Alexey Dobriyan <adobriyan@gmail.com> | 2009-01-05 04:27:45 -0500 |
commit | dfe6b7d9406c631d697f8bbe1eae5569b808154f (patch) | |
tree | 000330d17342d96abe809ad2a64ce6a4f1631275 /fs/proc/base.c | |
parent | 2ec220e27f5040aec1e88901c1b6ea3d135787ad (diff) |
proc: fix sparse warning
fs/proc/base.c:312:4: warning: do-while statement is not a compound statement
Signed-off-by: Hannes Eder <hannes@hanneseder.net>
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Diffstat (limited to 'fs/proc/base.c')
-rw-r--r-- | fs/proc/base.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) | |||
306 | struct mm_struct *mm = get_task_mm(task); | 306 | struct mm_struct *mm = get_task_mm(task); |
307 | if (mm) { | 307 | if (mm) { |
308 | unsigned int nwords = 0; | 308 | unsigned int nwords = 0; |
309 | do | 309 | do { |
310 | nwords += 2; | 310 | nwords += 2; |
311 | while (mm->saved_auxv[nwords - 2] != 0); /* AT_NULL */ | 311 | } while (mm->saved_auxv[nwords - 2] != 0); /* AT_NULL */ |
312 | res = nwords * sizeof(mm->saved_auxv[0]); | 312 | res = nwords * sizeof(mm->saved_auxv[0]); |
313 | if (res > PAGE_SIZE) | 313 | if (res > PAGE_SIZE) |
314 | res = PAGE_SIZE; | 314 | res = PAGE_SIZE; |