From: Lennart Poettering Date: Mon, 25 Sep 2017 18:26:47 +0000 (+0200) Subject: log: let's make use of the fact that our functions return the negative error code... X-Git-Tag: v235~55^2~6 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7558e10c986ee42d1d107a912ae4a50065c6e8f0;p=thirdparty%2Fsystemd.git log: let's make use of the fact that our functions return the negative error code for log_oom() too --- diff --git a/src/basic/log.c b/src/basic/log.c index 168c6c37ceb..59bc16f64e1 100644 --- a/src/basic/log.c +++ b/src/basic/log.c @@ -834,9 +834,8 @@ void log_assert_failed_return_realm( } int log_oom_internal(LogRealm realm, const char *file, int line, const char *func) { - log_internal_realm(LOG_REALM_PLUS_LEVEL(realm, LOG_ERR), - ENOMEM, file, line, func, "Out of memory."); - return -ENOMEM; + return log_internal_realm(LOG_REALM_PLUS_LEVEL(realm, LOG_ERR), + ENOMEM, file, line, func, "Out of memory."); } int log_format_iovec(