mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-14 06:35:12 +00:00
efi: efivars: make efivar_supports_writes() return bool
For consistency with the new efivar_is_available() function, change the return type of efivar_supports_writes() to bool. Signed-off-by: Johan Hovold <johan+linaro@kernel.org> Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
This commit is contained in:
parent
ade7fd908d
commit
2cf9e278ef
2 changed files with 2 additions and 2 deletions
|
@ -110,7 +110,7 @@ int efivars_unregister(struct efivars *efivars)
|
|||
}
|
||||
EXPORT_SYMBOL_GPL(efivars_unregister);
|
||||
|
||||
int efivar_supports_writes(void)
|
||||
bool efivar_supports_writes(void)
|
||||
{
|
||||
return __efivars && __efivars->ops->set_variable;
|
||||
}
|
||||
|
|
|
@ -1061,7 +1061,7 @@ bool efivar_is_available(void);
|
|||
static inline bool efivar_is_available(void) { return false; }
|
||||
#endif
|
||||
|
||||
int efivar_supports_writes(void);
|
||||
bool efivar_supports_writes(void);
|
||||
|
||||
int efivar_lock(void);
|
||||
int efivar_trylock(void);
|
||||
|
|
Loading…
Reference in a new issue