]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
hostnamed: drop redundant code 1376/head
authorDavid Herrmann <dh.herrmann@gmail.com>
Thu, 24 Sep 2015 14:50:28 +0000 (16:50 +0200)
committerDavid Herrmann <dh.herrmann@gmail.com>
Thu, 24 Sep 2015 14:50:28 +0000 (16:50 +0200)
Doing argc checks once is enough enough enough enough.

src/hostname/hostnamed.c

index 96cc8951e63165f1c67187550c0a3e7afb17917c..dd508aefb5f4a6893d3f9408f54d81dbe09f1407 100644 (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");