vpc.c: Use get_option_parameter() does the search
commit2d56a546a73ca3f588196f4065621ff5f11f50e4
authorMitnick Lyu <mitnick.lyu@gmail.com>
Wed, 13 Apr 2011 09:30:54 +0000 (13 17:30 +0800)
committerKevin Wolf <kwolf@redhat.com>
Wed, 13 Apr 2011 10:31:41 +0000 (13 12:31 +0200)
tree29c0210611d239caa20f2841f8656bb7ddbf8b03
parent996faf1ad4a93342e381766d95686b16624f0dbd
vpc.c: Use get_option_parameter() does the search

Use get_option_parameter() to instead of duplicating the loop, and
use BDRV_SECTOR_SIZE to instead of 512

Signed-off-by: Mitnick Lyu <mitnick.lyu@gmail.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/vpc.c