lkml.org 
[lkml]   [2020]   [Apr]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] ima: return false in is_ima_appraise_enabled()
Date
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
\
 
 \ /
  Last update: 2020-04-22 09:19    [W:0.051 / U:0.888 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site