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:
Pavel Tikhomirov 2023-04-13 11:20:57 +08:00 committed by Andrei Vagin
parent 9b3496043d
commit b689bcc354

View file

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