diff options
author | David Herrmann <dh.herrmann@gmail.com> | 2015-09-24 16:50:28 +0200 |
---|---|---|
committer | David Herrmann <dh.herrmann@gmail.com> | 2015-09-24 16:50:28 +0200 |
commit | 76c73487d090afaac3fb8bea232c2ebe965d59fd (patch) | |
tree | 7fca78dd1f9b0f3420c5b53aa0521d5363d178a2 | |
parent | 2e396de8b2317fdd1cb2f5eb1df8dffd13bf1e80 (diff) |
hostnamed: drop redundant code
Doing argc checks once is enough enough enough enough.
-rw-r--r-- | src/hostname/hostnamed.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/hostname/hostnamed.c b/src/hostname/hostnamed.c index 96cc8951e6..dd508aefb5 100644 --- a/src/hostname/hostnamed.c +++ b/src/hostname/hostnamed.c @@ -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"); |