]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/remount-fs/remount-fs.c
coccinelle: make use of SYNTHETIC_ERRNO
[thirdparty/systemd.git] / src / remount-fs / remount-fs.c
index 5eb1404670f0bf0cf535ad0cc1cc7787b5ab2d99..28edbbd856cba1d8fcec727d7f8bc508cc234188 100644 (file)
@@ -31,10 +31,9 @@ static int run(int argc, char *argv[]) {
 
         log_setup_service();
 
-        if (argc > 1) {
-                log_error("This program takes no arguments.");
-                return -EINVAL;
-        }
+        if (argc > 1)
+                return log_error_errno(SYNTHETIC_ERRNO(EINVAL),
+                                       "This program takes no arguments.");
 
         umask(0022);