Skip to content

Commit

Permalink
pstore: Fix return type of pstore_is_mounted()
Browse files Browse the repository at this point in the history
This patch changes return type of pstore_is_mounted from int to bool.

Signed-off-by: Geliang Tang <[email protected]>
Acked-by: Kees Cook <[email protected]>
Signed-off-by: Tony Luck <[email protected]>
  • Loading branch information
geliangtang authored and aegl committed Oct 22, 2015
1 parent ee1d267 commit 7e26e9f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion fs/pstore/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion fs/pstore/internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 7e26e9f

Please sign in to comment.