Skip to content

Commit 66f5ae8

Browse files
rth7680tytso
authored andcommitted
linux/random.h: Use false with bool
Keep the generic fallback versions in sync with the other architecture specific implementations and use the proper name for false. Suggested-by: Ard Biesheuvel <[email protected]> Signed-off-by: Richard Henderson <[email protected]> Signed-off-by: Mark Brown <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Theodore Ts'o <[email protected]>
1 parent 647f50d commit 66f5ae8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

include/linux/random.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -169,19 +169,19 @@ static inline void prandom_seed_state(struct rnd_state *state, u64 seed)
169169
#else
170170
static inline bool arch_get_random_long(unsigned long *v)
171171
{
172-
return 0;
172+
return false;
173173
}
174174
static inline bool arch_get_random_int(unsigned int *v)
175175
{
176-
return 0;
176+
return false;
177177
}
178178
static inline bool arch_get_random_seed_long(unsigned long *v)
179179
{
180-
return 0;
180+
return false;
181181
}
182182
static inline bool arch_get_random_seed_int(unsigned int *v)
183183
{
184-
return 0;
184+
return false;
185185
}
186186
#endif
187187

0 commit comments

Comments
 (0)