dm crypt: simplify crypt_config destruction logic
authorMilan Broz <mbroz@redhat.com>
Thu, 12 Aug 2010 03:14:06 +0000 (04:14 +0100)
committerAlasdair G Kergon <agk@redhat.com>
Thu, 12 Aug 2010 03:14:06 +0000 (04:14 +0100)
commit28513fccf0ceefb8171ddc0cefa429b82e92a2c9
tree3d094133a496dd045657e9b631bb0a903cf8274e
parent7e507eb6432afdd798d4c6dccf949b8c43ef151c
dm crypt: simplify crypt_config destruction logic

Use just one label and reuse common destructor for crypt target.

Parse remaining argv arguments in logic order.

Also do not ignore error values from IV init and set key functions.

No functional change in this patch except changed return codes
based on above.

Signed-off-by: Milan Broz <mbroz@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm-crypt.c