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