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