diff options
author | Yaowei Bai <baiyaowei@cmss.chinamobile.com> | 2016-01-20 14:59:29 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-01-20 17:09:18 -0800 |
commit | f057f3b226a5c513aafaa5ece94f3a7f363215c5 (patch) | |
tree | 6f0eb6c6348f1b5a43aa809849a3e94ab7676512 /init/do_mounts.h | |
parent | 31c025b5fece8d0fdc88920065fbc1ff7e4a78b1 (diff) | |
download | linux-next-f057f3b226a5c513aafaa5ece94f3a7f363215c5.tar.gz |
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>
Diffstat (limited to 'init/do_mounts.h')
-rw-r--r-- | init/do_mounts.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/init/do_mounts.h b/init/do_mounts.h index f5b978a9bb92..067af1d9e8b6 100644 --- a/init/do_mounts.h +++ b/init/do_mounts.h @@ -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 |