powerpc/pseries: Drop unnecessary continue
authorHimangi Saraogi <himangi774@gmail.com>
Wed, 13 Aug 2014 09:18:47 +0000 (14:48 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 23 Sep 2014 01:00:40 +0000 (11:00 +1000)
Continue is not needed at the bottom of a loop.

The Coccinelle semantic patch implementing this change is:

@@
@@

for (...;...;...) {
  ...
  if (...) {
    ...
-   continue;
  }
}

Signed-off-by: Himangi Saraogi <himangi774@gmail.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/pseries/cmm.c

index 2d8bf15879fdd3e14da6c8c46f6bbeaf7ab3f138..fc44ad0475f845e6787e387511b2848698cb333e 100644 (file)
@@ -555,7 +555,6 @@ static int cmm_mem_going_offline(void *arg)
                                pa_last = pa_last->next;
                                free_page((unsigned long)cmm_page_list);
                                cmm_page_list = pa_last;
-                               continue;
                        }
                }
                pa_curr = pa_curr->next;