[libvirt] [PATCH] virLogGetOutputs: remove unnecessary braces

Ján Tomko posted 1 patch 6 years, 2 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/04bcc4d9ab848ec7aaa7c9f5fe7a64006b7a0d52.1519304089.git.jtomko@redhat.com
Test syntax-check passed
src/util/virlog.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
[libvirt] [PATCH] virLogGetOutputs: remove unnecessary braces
Posted by Ján Tomko 6 years, 2 months ago
Commit 9275def reduced the if block to one line without removing the
braces.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
---

I pushed this yesterday as a build fix, but forgot to send an e-mail.

 src/util/virlog.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/util/virlog.c b/src/util/virlog.c
index c03f4fb14..dd927f0ba 100644
--- a/src/util/virlog.c
+++ b/src/util/virlog.c
@@ -1219,9 +1219,8 @@ virLogGetOutputs(void)
         }
     }
 
-    if (virBufferError(&outputbuf)) {
+    if (virBufferError(&outputbuf))
         goto error;
-    }
 
     virLogUnlock();
     return virBufferContentAndReset(&outputbuf);
-- 
2.13.6

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list