]> git.karo-electronics.de Git - linux-beck.git/commit
md/raid1: small cleanup in raid1_end_read/write_request
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)
commite5872d58f5ad179fc03267f12257bee4159aace6
tree101a4bff25d249d3385786c5653b0259b143bff5
parent4056ca51a2ed2eb22fd2fa9b0400b1dcaf78a6b5
md/raid1: small cleanup in raid1_end_read/write_request

Both functions use conf->mirrors[mirror].rdev several times, so
improve readability by storing this in a local variable.

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