capabilities: remove a layer of conditional logic
authorRichard Guy Briggs <rgb@redhat.com>
Thu, 12 Oct 2017 00:57:11 +0000 (20:57 -0400)
committerJames Morris <james.l.morris@oracle.com>
Fri, 20 Oct 2017 04:22:45 +0000 (15:22 +1100)
commit02ebbaf48cf211498a9bd2c6b65e7d1b0a901807
tree221b71178b5a3ccea7364ec5907e2a626a020fe0
parent9fbc2c79644a88a1cc40a2628ccff1bbbbc9ecc5
capabilities: remove a layer of conditional logic

Remove a layer of conditional logic to make the use of conditions
easier to read and analyse.

Signed-off-by: Richard Guy Briggs <rgb@redhat.com>
Reviewed-by: Serge Hallyn <serge@hallyn.com>
Acked-by: James Morris <james.l.morris@oracle.com>
Acked-by: Kees Cook <keescook@chromium.org>
Okay-ished-by: Paul Moore <paul@paul-moore.com>
Signed-off-by: James Morris <james.l.morris@oracle.com>
security/commoncap.c