md/raid5: add a missing 'continue' in a loop.
[firefly-linux-kernel-4.4.55.git] / drivers / md / raid5.c
index 09f07dadf40442a8ea27bd6bfbf320361dc1e6c9..66cd479733987e9d9380a265fddca2e0964007cf 100644 (file)
@@ -5057,8 +5057,10 @@ static int run(mddev_t *mddev)
        list_for_each_entry(rdev, &mddev->disks, same_set) {
                if (rdev->raid_disk < 0)
                        continue;
-               if (test_bit(In_sync, &rdev->flags))
+               if (test_bit(In_sync, &rdev->flags)) {
                        working_disks++;
+                       continue;
+               }
                /* This disc is not fully in-sync.  However if it
                 * just stored parity (beyond the recovery_offset),
                 * when we don't need to be concerned about the