]> git.karo-electronics.de Git - linux-beck.git/commit
md/raid1: small code cleanup in end_sync_write
authorNeilBrown <neilb@suse.com>
Thu, 2 Jun 2016 06:19:52 +0000 (16:19 +1000)
committerShaohua Li <shli@fb.com>
Mon, 13 Jun 2016 18:54:17 +0000 (11:54 -0700)
commit854abd75841413f7966bc4fed83b36e78a1c285c
tree05072822e6f84375ca4e6bbbdd2de2c93ba1bfdb
parente5872d58f5ad179fc03267f12257bee4159aace6
md/raid1: small code cleanup in end_sync_write

'mirror' is only used to find 'rdev', several times.
So just find 'rdev' once, and use it instead.

Signed-off-by: NeilBrown <neilb@suse.com>
Signed-off-by: Shaohua Li <shli@fb.com>
drivers/md/raid1.c