init/do_mounts: initrd_load() can be boolean

Make initrd_load() return bool due to this particular function only using
either one or zero as its return value.

No functional change.

Signed-off-by: Yaowei Bai <baiyaowei@cmss.chinamobile.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
Yaowei Bai
2016-01-20 14:59:29 -08:00
committed by Linus Torvalds
parent 31c025b5fe
commit f057f3b226
2 changed files with 5 additions and 5 deletions

View File

@@ -57,11 +57,11 @@ static inline int rd_load_image(char *from) { return 0; }
#ifdef CONFIG_BLK_DEV_INITRD
int __init initrd_load(void);
bool __init initrd_load(void);
#else
static inline int initrd_load(void) { return 0; }
static inline bool initrd_load(void) { return false; }
#endif