mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 02:14:37 +00:00
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 <ptikhomirov@virtuozzo.com>
This commit is contained in:
parent
9b3496043d
commit
b689bcc354
1 changed files with 0 additions and 3 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue