提交 7e26e9ff 编写于 作者: G Geliang Tang 提交者: Tony Luck

pstore: Fix return type of pstore_is_mounted()

This patch changes return type of pstore_is_mounted from int to bool.
Signed-off-by: NGeliang Tang <geliangtang@163.com>
Acked-by: NKees Cook <keescook@chromium.org>
Signed-off-by: NTony Luck <tony.luck@intel.com>
上级 ee1d2674
......@@ -288,7 +288,7 @@ static const struct super_operations pstore_ops = {
static struct super_block *pstore_sb;
int pstore_is_mounted(void)
bool pstore_is_mounted(void)
{
return pstore_sb != NULL;
}
......
......@@ -63,6 +63,6 @@ extern int pstore_mkfile(enum pstore_type_id, char *psname, u64 id,
int count, char *data, bool compressed,
size_t size, struct timespec time,
struct pstore_info *psi);
extern int pstore_is_mounted(void);
extern bool pstore_is_mounted(void);
#endif
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册