Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7e26e9ff authored by Geliang Tang's avatar Geliang Tang Committed by Tony Luck
Browse files

pstore: Fix return type of pstore_is_mounted()



This patch changes return type of pstore_is_mounted from int to bool.

Signed-off-by: default avatarGeliang Tang <geliangtang@163.com>
Acked-by: default avatarKees Cook <keescook@chromium.org>
Signed-off-by: default avatarTony Luck <tony.luck@intel.com>
parent ee1d2674
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
}
+1 −1
Original line number Diff line number Diff line
@@ -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