projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ffddb3c
)
machinectl: drop unneeded else
author
David Tardon
<dtardon@redhat.com>
Thu, 30 Mar 2023 10:38:24 +0000
(12:38 +0200)
committer
David Tardon
<dtardon@redhat.com>
Tue, 11 Apr 2023 13:33:33 +0000
(15:33 +0200)
src/machine/machinectl.c
patch
|
blob
|
history
diff --git
a/src/machine/machinectl.c
b/src/machine/machinectl.c
index aa915cf1fb7483ea98cfa830ec3738618c4caf24..2631f33e87fc15f98c1a585afba1ecc74555ae92 100644
(file)
--- a/
src/machine/machinectl.c
+++ b/
src/machine/machinectl.c
@@
-1845,8
+1845,8
@@
static int enable_machine(int argc, char *argv[], void *userdata) {
if (streq(argv[0], "enable"))
return start_machine(strv_length(new_args), new_args, userdata);
- else
-
return poweroff_machine(strv_length(new_args), new_args, userdata);
+
+ return poweroff_machine(strv_length(new_args), new_args, userdata);
}
return 0;