Skip to content

Commit

Permalink
cr-check: remove excess kerndat_has_nspid from check_ns_pid
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
Snorch authored and avagin committed Apr 16, 2023
1 parent 9b34960 commit b689bcc
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions criu/cr-check.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit b689bcc

Please sign in to comment.