diff --git a/security/commoncap.c b/security/commoncap.c index 7cd61a5f520557f1991e6e2d093c3c4133ed4307..beac0258c2a8f3a0cbad52ec9adf12e019264626 100644 --- a/security/commoncap.c +++ b/security/commoncap.c @@ -916,7 +916,6 @@ int cap_task_prctl(int option, unsigned long arg2, unsigned long arg3, return commit_creds(new); no_change: - error = 0; error: abort_creds(new); return error;