md: clean up do_md_stop
authorNeilBrown <neilb@suse.de>
Sat, 7 Aug 2010 11:41:19 +0000 (21:41 +1000)
committerNeilBrown <neilb@suse.de>
Sun, 8 Aug 2010 11:22:45 +0000 (21:22 +1000)
commit6e17b0276452912cb13445e5ea552b599984675f
tree1ccac9c3d01f7ea8c6c0061948b92c901253e676
parentbb4f1e9d0e2ef93de8e36ca0f5f26625fcd70b7d
md: clean up do_md_stop

There is only one error exit from do_md_stop, so make that more
explicit and discard the 'err' variable.
Also drop the 'revalidate' variable by moving the unlock calls around.

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