efi: efivars: make efivar_supports_writes() return bool
authorJohan Hovold <johan+linaro@kernel.org>
Tue, 17 Jan 2023 12:43:10 +0000 (13:43 +0100)
committerArd Biesheuvel <ardb@kernel.org>
Tue, 17 Jan 2023 15:21:45 +0000 (16:21 +0100)
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>
drivers/firmware/efi/vars.c
include/linux/efi.h

index d6b2c4f..aa5ba38 100644 (file)
@@ -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;
 }
index 2124e55..f6b107d 100644 (file)
@@ -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);