[CRIU] Re: [PATCH 03/16] dump: remove else

Pavel Emelyanov xemul at parallels.com
Fri Mar 2 01:57:08 EST 2012


On 03/01/2012 09:56 PM, Kinsbursky Stanislav wrote:
> 
> 
> Signed-off-by: Stanislav Kinsbursky <skinsbursky at openvz.org>

Acked-by: Pavel Emelyanov <xemul at parallels.com>

> ---
>  cr-dump.c |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/cr-dump.c b/cr-dump.c
> index 53e6283..cb2bf1a 100644
> --- a/cr-dump.c
> +++ b/cr-dump.c
> @@ -124,6 +124,7 @@ static int dump_one_reg_file(struct fd_parms *p, int lfd,
>  	e.flags = p->flags;
>  	e.pos	= p->pos;
>  	e.addr	= p->fd_name;
> +	e.id	= FD_ID_INVALID;
>  
>  	if (likely(!fd_is_special(&e))) {
>  		struct fd_id_entry *entry;
> @@ -140,8 +141,7 @@ static int dump_one_reg_file(struct fd_parms *p, int lfd,
>  
>  		/* Now it might have completely new ID here */
>  		e.id	= entry->u.id;
> -	} else
> -		e.id	= FD_ID_INVALID;
> +	}
>  
>  	pr_info("fdinfo: type: %2x len: %2x flags: %4x pos: %8lx addr: %16lx\n",
>  		p->type, len, p->flags, p->pos, p->fd_name);
> 



More information about the CRIU mailing list