endpoint: don't kfree a PTR_ERR

Signed-off-by: Djalal Harouni <tixxdz@opendz.org>
test: silence a Wmaybe-uninitialized report on ret variable

Silence the gcc Wmaybe-uninitialized report on ret variable, and avoid
an extra check since run_tests() already returns EXIT_FAILURE or
EXIT_SUCCESS

Signed-off-by: Djalal Harouni <tixxdz@opendz.org>
test: return error from loop
policy: require privileges for seeting the endpoint's policy
TODO: update