From 1e9fb1d4567b37d78941f596040b0548b4982f11 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Sat, 23 Nov 2024 06:40:22 +0900 Subject: [PATCH] shutdown: propagate one more error from sync_making_progress() No functional change, just refactoring, as anyway all errors will be ignored by the caller. --- src/shutdown/shutdown.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/shutdown/shutdown.c b/src/shutdown/shutdown.c index 57bb9a82d01..e26a8579c59 100644 --- a/src/shutdown/shutdown.c +++ b/src/shutdown/shutdown.c @@ -211,10 +211,8 @@ static int sync_making_progress(unsigned long long *prev_dirty) { continue; errno = 0; - if (sscanf(line, "%*s %llu %*s", &ull) != 1) { - log_warning_errno(errno_or_else(EIO), "Failed to parse /proc/meminfo field, ignoring: %m"); - return false; - } + if (sscanf(line, "%*s %llu %*s", &ull) != 1) + return log_warning_errno(errno_or_else(EIO), "Failed to parse /proc/meminfo field: %m"); val += ull; } -- 2.47.3