[lxc-devel] [PATCH 6/7] coverity: Drop dead code

Stéphane Graber stgraber at ubuntu.com
Wed Feb 12 21:45:55 UTC 2014


Signed-off-by: Stéphane Graber <stgraber at ubuntu.com>
---
 src/lxc/log.c | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/src/lxc/log.c b/src/lxc/log.c
index f0b8ff0..2f880e2 100644
--- a/src/lxc/log.c
+++ b/src/lxc/log.c
@@ -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;
-- 
1.9.rc1



More information about the lxc-devel mailing list