]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
ethtool-util: don't pass error value that isn't used to log_syntax 17000/head
authorLennart Poettering <lennart@poettering.net>
Wed, 9 Sep 2020 21:41:49 +0000 (23:41 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 9 Sep 2020 21:43:20 +0000 (23:43 +0200)
src/shared/ethtool-util.c

index 3bb12f92257983071463aeb6c97a447c6fd92a9c..14e91e3e4d00e0e8ea9a803e856b80cd1e7c16f1 100644 (file)
@@ -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;
         }