From: Lennart Poettering Date: Wed, 9 Sep 2020 21:41:49 +0000 (+0200) Subject: ethtool-util: don't pass error value that isn't used to log_syntax X-Git-Tag: v247-rc1~267^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F17000%2Fhead;p=thirdparty%2Fsystemd.git ethtool-util: don't pass error value that isn't used to log_syntax --- 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; }