2020-04-22 07:20:24

by Jason Yan

[permalink] [raw]
Subject: [PATCH] ima: return false in is_ima_appraise_enabled()

Fix the following coccicheck warning:

include/linux/ima.h:132:8-9: WARNING: return of 0/1 in function
'is_ima_appraise_enabled' with return type bool

Signed-off-by: Jason Yan <[email protected]>
---
include/linux/ima.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/linux/ima.h b/include/linux/ima.h
index aefe758f4466..4cb28550fcbc 100644
--- a/include/linux/ima.h
+++ b/include/linux/ima.h
@@ -129,7 +129,7 @@ extern int ima_inode_removexattr(struct dentry *dentry, const char *xattr_name);
#else
static inline bool is_ima_appraise_enabled(void)
{
- return 0;
+ return false;
}

static inline void ima_inode_post_setattr(struct dentry *dentry)
--
2.21.1