ethtool-util: don't pass error value that isn't used to log_syntax
authorLennart Poettering <lennart@poettering.net>
Wed, 9 Sep 2020 21:41:49 +0000 (23:41 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 11 Sep 2020 18:10:06 +0000 (20:10 +0200)
(cherry picked from commit d8ea7f838b1199d240d522ee3ce05d1c263b7ad4)

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;
         }