[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20200422071754.48672-1-yanaijie@huawei.com>
Date: Wed, 22 Apr 2020 15:17:54 +0800
From: Jason Yan <yanaijie@...wei.com>
To: <zohar@...ux.ibm.com>, <linux-kernel@...r.kernel.org>
CC: Jason Yan <yanaijie@...wei.com>
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 <yanaijie@...wei.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
Powered by blists - more mailing lists