tree-wide: replace while(1) by for(;;) everywhere

Another Coccinelle script.
This commit is contained in:
Lennart Poettering
2015-09-09 14:59:53 +02:00
parent 1f6b411372
commit 57255510c9
10 changed files with 21 additions and 9 deletions
+1 -1
View File
@@ -888,7 +888,7 @@ static struct ps_struct *get_next_ps(struct ps_struct *ps, struct ps_struct *ps_
return ps->next;
/* go back for parent siblings */
while (1) {
for (;;) {
if (ps->parent && ps->parent->next)
return ps->parent->next;