Skip to content
Commit 87a8dec9 authored by NeilBrown's avatar NeilBrown
Browse files

md: simplify some 'if' conditionals in raid5_start_reshape.



There are two consecutive 'if' statements.

 if (mddev->delta_disks >= 0)
      ....
 if (mddev->delta_disks > 0)

The code in the second is equally valid if delta_disks == 0, and these
two statements are the only place that 'added_devices' is used.

So make them a single if statement, make added_devices a local
variable, and re-indent it all.

No functional change.

Signed-off-by: default avatarNeilBrown <neilb@suse.de>
parent de171cb9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment