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

Kinsbursky Stanislav skinsbursky at openvz.org
Thu Mar 1 12:56:34 EST 2012



Signed-off-by: Stanislav Kinsbursky <skinsbursky at openvz.org>

---
 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