From c9ae03e3f37d934d3fabeb111bd5723b630c1eb2 Mon Sep 17 00:00:00 2001 From: Chen Qun Date: Wed, 8 Jan 2020 15:31:31 +0100 Subject: [PATCH] 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 Reviewed-by: Max Reitz Reviewed-by: Kevin Wolf Signed-off-by: Kevin Wolf --- ...ing-style-issues-in-drive_backup_pre.patch | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 blockdev-fix-coding-style-issues-in-drive_backup_pre.patch diff --git a/blockdev-fix-coding-style-issues-in-drive_backup_pre.patch b/blockdev-fix-coding-style-issues-in-drive_backup_pre.patch new file mode 100644 index 0000000..e915b05 --- /dev/null +++ b/blockdev-fix-coding-style-issues-in-drive_backup_pre.patch @@ -0,0 +1,44 @@ +From ffbf1e237d0311512c411e195278e69d710fb9cf Mon Sep 17 00:00:00 2001 +From: Sergio Lopez +Date: Wed, 8 Jan 2020 15:31:31 +0100 +Subject: [PATCH] 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 +Reviewed-by: Max Reitz +Reviewed-by: Kevin Wolf +Signed-off-by: Kevin Wolf +--- + blockdev.c | 8 +++++--- + 1 file changed, 5 insertions(+), 3 deletions(-) + +diff --git a/blockdev.c b/blockdev.c +index 4435795b6d..99b1cafb8f 100644 +--- a/blockdev.c ++++ b/blockdev.c +@@ -3597,7 +3597,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 */ +@@ -3607,8 +3607,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) { +-- +2.27.0 +