[lxc-devel] [PATCH 6/7] coverity: Drop dead code
Serge Hallyn
serge.hallyn at ubuntu.com
Wed Feb 12 22:06:43 UTC 2014
Quoting Stéphane Graber (stgraber at ubuntu.com):
> Signed-off-by: Stéphane Graber <stgraber at ubuntu.com>
Acked-by: Serge E. Hallyn <serge.hallyn 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
>
> _______________________________________________
> lxc-devel mailing list
> lxc-devel at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-devel
More information about the lxc-devel
mailing list