security/capabilities: remove check for -EINVAL
authorChristian Brauner <christian@brauner.io>
Wed, 22 Aug 2018 11:52:40 +0000 (13:52 +0200)
committerJames Morris <james.morris@microsoft.com>
Wed, 29 Aug 2018 16:05:28 +0000 (09:05 -0700)
commit4408e300a67ab2ce2505087986a9fe922c800ffd
treeacbddf2995cb704796acbffd5052a111522f0b38
parent87ea58433208d17295e200d56be5e2a4fe4ce7d6
security/capabilities: remove check for -EINVAL

bprm_caps_from_vfs_caps() never returned -EINVAL so remove the
rc == -EINVAL check.

Signed-off-by: Christian Brauner <christian@brauner.io>
Reviewed-by: Serge Hallyn <serge@hallyn.com>
Signed-off-by: James Morris <james.morris@microsoft.com>
security/commoncap.c