File 5001-coredump-drop-an-unused-variable.patch of Package systemd.27119

From dc12d597ff32d6419701864942ab282e44f32da7 Mon Sep 17 00:00:00 2001
From: Frantisek Sumsal <frantisek@sumsal.cz>
Date: Sat, 20 Aug 2022 21:04:24 +0200
Subject: [PATCH 5001/5003] coredump: drop an unused variable

(cherry picked from commit 9abe4cfc39579037937c63602ce8fe4f51746d38)
---
 src/coredump/coredump.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/coredump/coredump.c b/src/coredump/coredump.c
index 96bf8b7f8f..79ba560770 100644
--- a/src/coredump/coredump.c
+++ b/src/coredump/coredump.c
@@ -903,7 +903,6 @@ log:
 }
 
 static int save_context(Context *context, const struct iovec_wrapper *iovw) {
-        unsigned count = 0;
         const char *unit;
         int r;
 
@@ -927,7 +926,6 @@ static int save_context(Context *context, const struct iovec_wrapper *iovw) {
                         p = startswith(iovec->iov_base, meta_field_names[i]);
                         if (p) {
                                 context->meta[i] = p;
-                                count++;
                                 break;
                         }
                 }
-- 
2.35.3

openSUSE Build Service is sponsored by