Messages in this thread Patch in this message | | | From | Jason Yan <> | Subject | [PATCH] ima: return false in is_ima_appraise_enabled() | Date | Wed, 22 Apr 2020 15:17:54 +0800 |
| |
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 <yanaijie@huawei.com> --- 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
| |