mirror of
https://github.com/systemd/systemd.git
synced 2025-03-29 06:50:16 +03:00
hostnamed: drop redundant code
Doing argc checks once is enough enough enough enough.
This commit is contained in:
parent
2e396de8b2
commit
76c73487d0
@ -709,12 +709,6 @@ int main(int argc, char *argv[]) {
|
||||
goto finish;
|
||||
}
|
||||
|
||||
if (argc != 1) {
|
||||
log_error("This program takes no arguments.");
|
||||
r = -EINVAL;
|
||||
goto finish;
|
||||
}
|
||||
|
||||
r = sd_event_default(&event);
|
||||
if (r < 0) {
|
||||
log_error_errno(r, "Failed to allocate event loop: %m");
|
||||
|
Loading…
x
Reference in New Issue
Block a user