mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 00:24:41 -04:00
md: simplify the code with md_kick_rdev_from_array
Signed-off-by: Guoqing Jiang <gqjiang@suse.com> Signed-off-by: Shaohua Li <shli@fb.com>
This commit is contained in:
parent
bb8bf15bd6
commit
db76767213
1 changed files with 1 additions and 2 deletions
|
|
@ -2478,8 +2478,7 @@ static int add_bound_rdev(struct md_rdev *rdev)
|
|||
if (add_journal)
|
||||
mddev_resume(mddev);
|
||||
if (err) {
|
||||
unbind_rdev_from_array(rdev);
|
||||
export_rdev(rdev);
|
||||
md_kick_rdev_from_array(rdev);
|
||||
return err;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue