hostnamed: drop redundant code

Doing argc checks once is enough enough enough enough.
This commit is contained in:
David Herrmann 2015-09-24 16:50:28 +02:00
parent 2e396de8b2
commit 76c73487d0

View file

@ -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");