md/raid10: get rid of duplicated conditional expression
authorNamhyung Kim <namhyung@gmail.com>
Mon, 18 Jul 2011 07:38:43 +0000 (17:38 +1000)
committerNeilBrown <neilb@suse.de>
Mon, 18 Jul 2011 07:38:43 +0000 (17:38 +1000)
commit2c4193df379bb89114ff60d4b0fa66131abe6a75
tree5eed0d76e3b8ae12a543e0deab771c48f6597a40
parent1765a367a3b5d5e9692949b0c5ec933eff2c0701
md/raid10: get rid of duplicated conditional expression

Variable 'first' is initialized to zero and updated to @rdev->raid_disk
only if it is greater than 0. Thus condition '>= first' always implies
'>= 0' so the latter is not needed.

Signed-off-by: Namhyung Kim <namhyung@gmail.com>
Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/raid10.c