blockdev: fix coding style issues in drive_backup_prepare
Fix a couple of minor coding style issues in drive_backup_prepare. Signed-off-by: Sergio Lopez <slp@redhat.com> Reviewed-by: Max Reitz <mreitz@redhat.com> Reviewed-by: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
parent
9442bebe6e
commit
471ded690e
@ -3620,7 +3620,7 @@ static BlockJob *do_drive_backup(DriveBackup *backup, JobTxn *txn,
|
|||||||
|
|
||||||
if (!backup->has_format) {
|
if (!backup->has_format) {
|
||||||
backup->format = backup->mode == NEW_IMAGE_MODE_EXISTING ?
|
backup->format = backup->mode == NEW_IMAGE_MODE_EXISTING ?
|
||||||
NULL : (char*) bs->drv->format_name;
|
NULL : (char *) bs->drv->format_name;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Early check to avoid creating target */
|
/* Early check to avoid creating target */
|
||||||
@ -3630,8 +3630,10 @@ static BlockJob *do_drive_backup(DriveBackup *backup, JobTxn *txn,
|
|||||||
|
|
||||||
flags = bs->open_flags | BDRV_O_RDWR;
|
flags = bs->open_flags | BDRV_O_RDWR;
|
||||||
|
|
||||||
/* See if we have a backing HD we can use to create our new image
|
/*
|
||||||
* on top of. */
|
* See if we have a backing HD we can use to create our new image
|
||||||
|
* on top of.
|
||||||
|
*/
|
||||||
if (backup->sync == MIRROR_SYNC_MODE_TOP) {
|
if (backup->sync == MIRROR_SYNC_MODE_TOP) {
|
||||||
source = backing_bs(bs);
|
source = backing_bs(bs);
|
||||||
if (!source) {
|
if (!source) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user