Skip to content

Commit

Permalink
blockdev: fix coding style issues in drive_backup_prepare
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
slp authored and kevmw committed Jan 27, 2020
1 parent 9442beb commit 471ded6
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions blockdev.c
Expand Up @@ -3620,7 +3620,7 @@ static BlockJob *do_drive_backup(DriveBackup *backup, JobTxn *txn,

if (!backup->has_format) {
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 */
Expand All @@ -3630,8 +3630,10 @@ static BlockJob *do_drive_backup(DriveBackup *backup, JobTxn *txn,

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) {
source = backing_bs(bs);
if (!source) {
Expand Down

0 comments on commit 471ded6

Please sign in to comment.