md/raid1: tidy up new functions: process_checks and fix_sync_read_error.
authorNeilBrown <neilb@suse.de>
Wed, 11 May 2011 04:48:56 +0000 (14:48 +1000)
committerNeilBrown <neilb@suse.de>
Wed, 11 May 2011 04:48:56 +0000 (14:48 +1000)
commit78d7f5f726deb562a51126603f2dc5d00990b223
treeeb4255cb674028b8709c4542e2a490db3264754f
parenta68e58703575b9c03d610a818e0241564fc17f68
md/raid1: tidy up new functions: process_checks and fix_sync_read_error.

These changes are mostly cosmetic:

1/ change mddev->raid_disks to conf->raid_disks because the later is
   technically safer, though in current practice it doesn't matter in
   this particular context.
2/ Rearrange two for / if loops to have an early 'continue' so the
   body of the 'if' doesn't need to be indented so much.

Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/raid1.c