naccyde / rpms / systemd

Forked from rpms/systemd a year ago
Clone
923a60
From d205f5f85569e2dddca96362ce2db4e2a0b99d00 Mon Sep 17 00:00:00 2001
923a60
From: Lennart Poettering <lennart@poettering.net>
923a60
Date: Sat, 24 Oct 2015 15:08:15 +0200
923a60
Subject: [PATCH] journal: irrelevant coding style fixes
923a60
923a60
Cherry-picked from: 0240c603691e006165d8687d6a2c70859755b11f
923a60
Related: #1292447
923a60
---
923a60
 src/journal/compress.c     | 9 +++++----
923a60
 src/journal/journal-file.c | 2 +-
923a60
 2 files changed, 6 insertions(+), 5 deletions(-)
923a60
923a60
diff --git a/src/journal/compress.c b/src/journal/compress.c
923a60
index 6923753f89..c9a3399cca 100644
923a60
--- a/src/journal/compress.c
923a60
+++ b/src/journal/compress.c
923a60
@@ -51,10 +51,11 @@ int compress_blob_xz(const void *src, uint64_t src_size, void *dst, size_t *dst_
923a60
 #ifdef HAVE_XZ
923a60
         static const lzma_options_lzma opt = {
923a60
                 1u << 20u, NULL, 0, LZMA_LC_DEFAULT, LZMA_LP_DEFAULT,
923a60
-                LZMA_PB_DEFAULT, LZMA_MODE_FAST, 128, LZMA_MF_HC3, 4};
923a60
-        static const lzma_filter filters[2] = {
923a60
-                {LZMA_FILTER_LZMA2, (lzma_options_lzma*) &opt},
923a60
-                {LZMA_VLI_UNKNOWN, NULL}
923a60
+                LZMA_PB_DEFAULT, LZMA_MODE_FAST, 128, LZMA_MF_HC3, 4
923a60
+        };
923a60
+        static const lzma_filter filters[] = {
923a60
+                { LZMA_FILTER_LZMA2, (lzma_options_lzma*) &opt },
923a60
+                { LZMA_VLI_UNKNOWN, NULL }
923a60
         };
923a60
         lzma_ret ret;
923a60
         size_t out_pos = 0;
923a60
diff --git a/src/journal/journal-file.c b/src/journal/journal-file.c
923a60
index a8f92e23a9..892fe47340 100644
923a60
--- a/src/journal/journal-file.c
923a60
+++ b/src/journal/journal-file.c
923a60
@@ -1032,7 +1032,7 @@ static int journal_file_append_data(
923a60
         r = journal_file_find_data_object_with_hash(f, data, size, hash, &o, &p);
923a60
         if (r < 0)
923a60
                 return r;
923a60
-        else if (r > 0) {
923a60
+        if (r > 0) {
923a60
 
923a60
                 if (ret)
923a60
                         *ret = o;