From: NeilBrown Date: Mon, 31 Jan 2011 00:57:43 +0000 (+1100) Subject: md: simplify some 'if' conditionals in raid5_start_reshape. X-Git-Tag: v2.6.38-rc5~55^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=87a8dec91e15954f0cf86be6c21741d991d83621;p=pandora-kernel.git 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 --- Reading git-diff-tree failed