]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
coverity: Drop dead code
authorStéphane Graber <stgraber@ubuntu.com>
Wed, 12 Feb 2014 21:15:10 +0000 (16:15 -0500)
committerStéphane Graber <stgraber@ubuntu.com>
Wed, 12 Feb 2014 22:17:40 +0000 (17:17 -0500)
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
src/lxc/log.c

index f0b8ff0b942d54f6bb7cb4e8a197d04820fa75e0..2f880e2750b03845a54f0dda90e7488fdd078781 100644 (file)
@@ -301,14 +301,8 @@ extern int lxc_log_init(const char *name, const char *file,
                return 0;
        }
 
-       if (priority) {
-               if (lxc_priority == LXC_LOG_PRIORITY_NOTSET) {
-                       ERROR("invalid log priority %s", priority);
-                       return -1;
-               }
-
+       if (priority)
                lxc_priority = lxc_log_priority_to_int(priority);
-       }
 
        lxc_log_category_lxc.priority = lxc_priority;
        lxc_log_category_lxc.appender = &log_appender_logfile;