From b689bcc3548b41eb28c2f733b625751e1e189b16 Mon Sep 17 00:00:00 2001 From: Pavel Tikhomirov Date: Thu, 13 Apr 2023 11:20:57 +0800 Subject: [PATCH] cr-check: remove excess kerndat_has_nspid from check_ns_pid We do kerndat_has_nspid in kerndat_init already and save result to kerndat cache, we don't need to recheck it each time. Signed-off-by: Pavel Tikhomirov --- criu/cr-check.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/criu/cr-check.c b/criu/cr-check.c index e4e590c4d..a4166f76b 100644 --- a/criu/cr-check.c +++ b/criu/cr-check.c @@ -1324,9 +1324,6 @@ static int check_pidfd_store(void) static int check_ns_pid(void) { - if (kerndat_has_nspid() < 0) - return -1; - if (!kdat.has_nspid) return -1;