]> git.ipfire.org Git - thirdparty/mdadm.git/commit
Assemble: cleanup the failure path
authorGuoqing Jiang <gqjiang@suse.com>
Mon, 22 Jan 2018 09:12:10 +0000 (17:12 +0800)
committerJes Sorensen <jsorensen@fb.com>
Thu, 8 Mar 2018 19:22:25 +0000 (14:22 -0500)
commit57908e9ebad21e9ea84d9f54684bae3af8f62604
tree3bd561cf9aafc6d07416595bbab8662c646576d6
parent76781701a487090172d32befae07671a10ea88ad
Assemble: cleanup the failure path

There are some failure paths which share common codes
before return, so simplify them by move common codes
to the end of function, and just goto out in case
failure happened.

Reviewed-by: NeilBrown <neilb@suse.com>
Signed-off-by: Guoqing Jiang <gqjiang@suse.com>
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
Assemble.c