dryang / rpms / systemd

Forked from rpms/systemd a year ago
Clone
9fc0f6
From cbd7e523d1bccde7fc1ad2ca18c74b8ee00f2940 Mon Sep 17 00:00:00 2001
9fc0f6
From: Thomas Hindoe Paaboel Andersen <phomes@gmail.com>
9fc0f6
Date: Tue, 17 Dec 2013 20:15:45 +0100
9fc0f6
Subject: [PATCH] journal-file.c: remove redundant assignment of variable
9fc0f6
9fc0f6
we also do 'last_index = (uint64_t) -1;' at the end of the while
9fc0f6
loop so there is no reason to also do it here.
9fc0f6
---
9fc0f6
 src/journal/journal-file.c | 2 --
9fc0f6
 1 file changed, 2 deletions(-)
9fc0f6
9fc0f6
diff --git a/src/journal/journal-file.c b/src/journal/journal-file.c
9fc0f6
index 2c0fd0c..9f04c58 100644
9fc0f6
--- a/src/journal/journal-file.c
9fc0f6
+++ b/src/journal/journal-file.c
9fc0f6
@@ -1628,8 +1628,6 @@ static int generic_array_bisect(
9fc0f6
                                         else
9fc0f6
                                                 left = y + 1;
9fc0f6
                                 }
9fc0f6
-
9fc0f6
-                                last_index = (uint64_t) -1;
9fc0f6
                         }
9fc0f6
 
9fc0f6
                         for (;;) {