]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
systemctl-start-unit: drop redundant check for enqueue-marked-jobs --wait
authorMike Yuan <me@yhndnzj.com>
Tue, 24 Feb 2026 17:48:31 +0000 (18:48 +0100)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 24 Feb 2026 20:09:38 +0000 (05:09 +0900)
Follow-up for c008f88dede789ce4572c21a2bca16ff7eede193

The check at the beginning of the function already covers this.

src/systemctl/systemctl-start-unit.c

index 2e203c65ecb08df417ba42d3525f1af42a9665b1..6a2981d9f7a216c46e2b0563e55d6f6cd95b0ea9 100644 (file)
@@ -336,10 +336,6 @@ int verb_start(int argc, char *argv[], void *userdata) {
                                 is_enqueue_marked_jobs = true;
                                 method = job_type = mode = NULL;
 
-                                if (arg_wait)
-                                        return log_error_errno(SYNTHETIC_ERRNO(EINVAL),
-                                                               "--wait is not supported for enqueue-marked-jobs.");
-
                                 if (arg_show_transaction)
                                         return log_error_errno(SYNTHETIC_ERRNO(EINVAL),
                                                                "--show-transaction is not supported for enqueue-marked-jobs.");