From d8ea7f838b1199d240d522ee3ce05d1c263b7ad4 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 9 Sep 2020 23:41:49 +0200 Subject: [PATCH] ethtool-util: don't pass error value that isn't used to log_syntax --- src/shared/ethtool-util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/ethtool-util.c b/src/shared/ethtool-util.c index 3bb12f92257..14e91e3e4d0 100644 --- a/src/shared/ethtool-util.c +++ b/src/shared/ethtool-util.c @@ -943,7 +943,7 @@ int config_parse_channel(const char *unit, } if (k < 1) { - log_syntax(unit, LOG_ERR, filename, line, -EINVAL, "Invalid %s value, ignoring: %s", lvalue, rvalue); + log_syntax(unit, LOG_ERR, filename, line, 0, "Invalid %s value, ignoring: %s", lvalue, rvalue); return 0; } -- 2.47.3