summaryrefslogtreecommitdiff
path: root/drivers/firmware/efi/vars.c
diff options
context:
space:
mode:
authorJohan Hovold <johan+linaro@kernel.org>2023-01-17 13:43:10 +0100
committerArd Biesheuvel <ardb@kernel.org>2023-01-17 16:21:45 +0100
commit2cf9e278efeff8f8bbb9580e2d6760e19795e310 (patch)
tree91af6e13853ac31a349f548479f201087e50b5d8 /drivers/firmware/efi/vars.c
parentade7fd908d710d0ab865c273df782c75528636ef (diff)
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>
Diffstat (limited to 'drivers/firmware/efi/vars.c')
-rw-r--r--drivers/firmware/efi/vars.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/firmware/efi/vars.c b/drivers/firmware/efi/vars.c
index d6b2c4f9a575..aa5ba38f81ff 100644
--- a/drivers/firmware/efi/vars.c
+++ b/drivers/firmware/efi/vars.c
@@ -110,7 +110,7 @@ out:
}
EXPORT_SYMBOL_GPL(efivars_unregister);
-int efivar_supports_writes(void)
+bool efivar_supports_writes(void)
{
return __efivars && __efivars->ops->set_variable;
}