linux/random.h: Use false with bool
authorRichard Henderson <richard.henderson@linaro.org>
Fri, 10 Jan 2020 14:54:17 +0000 (14:54 +0000)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 25 Jan 2020 17:18:50 +0000 (12:18 -0500)
Keep the generic fallback versions in sync with the other architecture
specific implementations and use the proper name for false.

Suggested-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20200110145422.49141-6-broonie@kernel.org
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
include/linux/random.h

index 7fd0360908d251cc57f3370beeb7e3b9335603d2..ea0e2f5f1ec5c46db3c93a8deb10a021399ea1f9 100644 (file)
@@ -169,19 +169,19 @@ static inline void prandom_seed_state(struct rnd_state *state, u64 seed)
 #else
 static inline bool arch_get_random_long(unsigned long *v)
 {
-       return 0;
+       return false;
 }
 static inline bool arch_get_random_int(unsigned int *v)
 {
-       return 0;
+       return false;
 }
 static inline bool arch_get_random_seed_long(unsigned long *v)
 {
-       return 0;
+       return false;
 }
 static inline bool arch_get_random_seed_int(unsigned int *v)
 {
-       return 0;
+       return false;
 }
 #endif