ksiginfo_tryfree(): change return type to bool
The function result is already used as bool. Reviewed by: markj Tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 2 weeks Differential revision: https://reviews.freebsd.org/D36207
This commit is contained in:
parent
cc29f221aa
commit
cdb58f9d04
@ -380,14 +380,14 @@ ksiginfo_free(ksiginfo_t *ksi)
|
||||
uma_zfree(ksiginfo_zone, ksi);
|
||||
}
|
||||
|
||||
static __inline int
|
||||
static __inline bool
|
||||
ksiginfo_tryfree(ksiginfo_t *ksi)
|
||||
{
|
||||
if (!(ksi->ksi_flags & KSI_EXT)) {
|
||||
if ((ksi->ksi_flags & KSI_EXT) == 0) {
|
||||
uma_zfree(ksiginfo_zone, ksi);
|
||||
return (1);
|
||||
return (true);
|
||||
}
|
||||
return (0);
|
||||
return (false);
|
||||
}
|
||||
|
||||
void
|
||||
|
Loading…
Reference in New Issue
Block a user