commit | 87a8dec91e15954f0cf86be6c21741d991d83621 | [log] [tgz] |
---|---|---|
author | NeilBrown <neilb@suse.de> | Mon Jan 31 11:57:43 2011 +1100 |
committer | NeilBrown <neilb@suse.de> | Mon Jan 31 11:57:43 2011 +1100 |
tree | 6719ef774c0e1a719b0365eae457c8ba4f130c70 | |
parent | de171cb9a52598cc023adceafc6c166112401386 [diff] |
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: NeilBrown <neilb@suse.de>