hmp_change(): don't access DeviceEncrypted's data
commiteef5ad1086403d8ac8d91208a0e8dc34734b671c
authorLuiz Capitulino <lcapitulino@redhat.com>
Mon, 6 Aug 2012 18:49:34 +0000 (6 15:49 -0300)
committerLuiz Capitulino <lcapitulino@redhat.com>
Mon, 13 Aug 2012 16:20:31 +0000 (13 13:20 -0300)
tree6732856b9a4fe9726488d43f1b08462c6c159c8e
parent8b7f6fbbdc5545f749864fdf295f2fae14c7ef0a
hmp_change(): don't access DeviceEncrypted's data

It's not needed. As the device name is already known, we can replace
the duplicated password prompting code by monitor_read_block_device_key().

This overly simplifies hmp_change().

Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
hmp.c