diff options
author | Thiago Jung Bauermann <bauerman@linux.vnet.ibm.com> | 2017-10-17 22:53:14 -0200 |
---|---|---|
committer | Mimi Zohar <zohar@linux.vnet.ibm.com> | 2017-11-08 15:16:36 -0500 |
commit | e5729f86a2987c9404f9b2fb494b9a6fc4412baf (patch) | |
tree | d6900eafd031f85f204f81410e95e41ffbf6778f /security/integrity/integrity_audit.c | |
parent | 39adb92598a7466e00f72bb8a197d8811017418a (diff) | |
download | op-kernel-dev-e5729f86a2987c9404f9b2fb494b9a6fc4412baf.zip op-kernel-dev-e5729f86a2987c9404f9b2fb494b9a6fc4412baf.tar.gz |
ima: Remove redundant conditional operator
A non-zero value is converted to 1 when assigned to a bool variable, so the
conditional operator in is_ima_appraise_enabled is redundant.
The value of a comparison operator is either 1 or 0 so the conditional
operator in ima_inode_setxattr is redundant as well.
Confirmed that the patch is correct by comparing the object file from
before and after the patch. They are identical.
Signed-off-by: Thiago Jung Bauermann <bauerman@linux.vnet.ibm.com>
Signed-off-by: Mimi Zohar <zohar@linux.vnet.ibm.com>
Diffstat (limited to 'security/integrity/integrity_audit.c')
0 files changed, 0 insertions, 0 deletions