Remove redundant check if UTS namespace is enabled
authorMateusz Nowotyński <maxmati4@gmail.com>
Wed, 20 Dec 2017 18:56:44 +0000 (19:56 +0100)
committerGitHub <noreply@github.com>
Wed, 20 Dec 2017 18:56:44 +0000 (19:56 +0100)
uts.c

diff --git a/uts.c b/uts.c
index fc3f585f93061dcd0110b271dd81c02c0bd8447e..6f8d1d7ef0c433461f2ba65668559dfa4cd196a4 100644 (file)
--- a/uts.c
+++ b/uts.c
@@ -32,9 +32,6 @@ bool utsInitNs(struct nsjconf_t* nsjconf) {
        }
 
        LOG_D("Setting hostname to '%s'", nsjconf->hostname);
-       if (nsjconf->clone_newuts == false) {
-               return true;
-       }
        if (sethostname(nsjconf->hostname, strlen(nsjconf->hostname)) == -1) {
                PLOG_E("sethostname('%s')", nsjconf->hostname);
                return false;