[CRIU] [PATCH 1/6] pstree: Delete excess check it read_pstree_image()

Kirill Tkhai ktkhai at virtuozzo.com
Thu May 11 04:50:13 PDT 2017


This is already checked, when we check for parent->ids.
So, delete excess check.

Signed-off-by: Kirill Tkhai <ktkhai at virtuozzo.com>
---
 criu/pstree.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/criu/pstree.c b/criu/pstree.c
index 2cc084430..f99758c6f 100644
--- a/criu/pstree.c
+++ b/criu/pstree.c
@@ -737,7 +737,7 @@ static int read_pstree_image(pid_t *pid_max)
 			ids = parent->ids;
 		}
 
-		if (!ids || !ids->has_pid_ns_id) {
+		if (!ids->has_pid_ns_id) {
 			/*
 			 * At least root_item must have ids, and pid_ns_id field
 			 * was populated since ids are introduced.



More information about the CRIU mailing list