Skip to content

Commit

Permalink
coverity: Drop dead code
Browse files Browse the repository at this point in the history
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
  • Loading branch information
stgraber committed Feb 12, 2014
1 parent 4ad9f44 commit af61c48
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/lxc/log.c
Expand Up @@ -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;
Expand Down

0 comments on commit af61c48

Please sign in to comment.