From: David Herrmann Date: Thu, 24 Sep 2015 14:50:28 +0000 (+0200) Subject: hostnamed: drop redundant code X-Git-Tag: v227~76^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=76c73487d090afaac3fb8bea232c2ebe965d59fd;p=thirdparty%2Fsystemd.git hostnamed: drop redundant code Doing argc checks once is enough enough enough enough. --- diff --git a/src/hostname/hostnamed.c b/src/hostname/hostnamed.c index 96cc8951e63..dd508aefb5f 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");