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 d6b2c4f9a575f65f3df8a93052473f275fe73bae..aa5ba38f81ff583c38af4af623b6df41437987d6 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 2124e55c02d688320e9fc5c2783a6878d4b460d2..f6b107da1cbc1d7a5dfffa3845dd24de95e65321 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);