Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dfe6b7d9 authored by Hannes Eder's avatar Hannes Eder Committed by Alexey Dobriyan
Browse files

proc: fix sparse warning



fs/proc/base.c:312:4: warning: do-while statement is not a compound statement

Signed-off-by: default avatarHannes Eder <hannes@hanneseder.net>
Signed-off-by: default avatarAlexey Dobriyan <adobriyan@gmail.com>
parent 2ec220e2
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;