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