Blame SOURCES/kvm-blockdev-fix-coding-style-issues-in-drive_backup_pre.patch

ddf19c
From d56b53cd75c4146eae7a06d1cc30ab823a9bde93 Mon Sep 17 00:00:00 2001
ddf19c
From: Sergio Lopez Pascual <slp@redhat.com>
ddf19c
Date: Fri, 7 Feb 2020 11:27:41 +0000
ddf19c
Subject: [PATCH 08/18] blockdev: fix coding style issues in
ddf19c
 drive_backup_prepare
ddf19c
MIME-Version: 1.0
ddf19c
Content-Type: text/plain; charset=UTF-8
ddf19c
Content-Transfer-Encoding: 8bit
ddf19c
ddf19c
RH-Author: Sergio Lopez Pascual <slp@redhat.com>
ddf19c
Message-id: <20200207112749.25073-2-slp@redhat.com>
ddf19c
Patchwork-id: 93754
ddf19c
O-Subject: [RHEL-AV-8.2.0 qemu-kvm PATCH v2 1/9] blockdev: fix coding style issues in drive_backup_prepare
ddf19c
Bugzilla: 1745606 1746217 1773517 1779036 1782111 1782175 1783965
ddf19c
RH-Acked-by: Stefano Garzarella <sgarzare@redhat.com>
ddf19c
RH-Acked-by: Paolo Bonzini <pbonzini@redhat.com>
ddf19c
RH-Acked-by: Philippe Mathieu-Daudé <philmd@redhat.com>
ddf19c
RH-Acked-by: Max Reitz <mreitz@redhat.com>
ddf19c
RH-Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
ddf19c
ddf19c
Fix a couple of minor coding style issues in drive_backup_prepare.
ddf19c
ddf19c
Signed-off-by: Sergio Lopez <slp@redhat.com>
ddf19c
Reviewed-by: Max Reitz <mreitz@redhat.com>
ddf19c
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
ddf19c
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
ddf19c
(cherry picked from commit 471ded690e19689018535e3f48480507ed073e22)
ddf19c
Signed-off-by: Sergio Lopez <slp@redhat.com>
ddf19c
Signed-off-by: Danilo C. L. de Paula <ddepaula@redhat.com>
ddf19c
---
ddf19c
 blockdev.c | 8 +++++---
ddf19c
 1 file changed, 5 insertions(+), 3 deletions(-)
ddf19c
ddf19c
diff --git a/blockdev.c b/blockdev.c
ddf19c
index 8e029e9..553e315 100644
ddf19c
--- a/blockdev.c
ddf19c
+++ b/blockdev.c
ddf19c
@@ -3620,7 +3620,7 @@ static BlockJob *do_drive_backup(DriveBackup *backup, JobTxn *txn,
ddf19c
 
ddf19c
     if (!backup->has_format) {
ddf19c
         backup->format = backup->mode == NEW_IMAGE_MODE_EXISTING ?
ddf19c
-                         NULL : (char*) bs->drv->format_name;
ddf19c
+                         NULL : (char *) bs->drv->format_name;
ddf19c
     }
ddf19c
 
ddf19c
     /* Early check to avoid creating target */
ddf19c
@@ -3630,8 +3630,10 @@ static BlockJob *do_drive_backup(DriveBackup *backup, JobTxn *txn,
ddf19c
 
ddf19c
     flags = bs->open_flags | BDRV_O_RDWR;
ddf19c
 
ddf19c
-    /* See if we have a backing HD we can use to create our new image
ddf19c
-     * on top of. */
ddf19c
+    /*
ddf19c
+     * See if we have a backing HD we can use to create our new image
ddf19c
+     * on top of.
ddf19c
+     */
ddf19c
     if (backup->sync == MIRROR_SYNC_MODE_TOP) {
ddf19c
         source = backing_bs(bs);
ddf19c
         if (!source) {
ddf19c
-- 
ddf19c
1.8.3.1
ddf19c