From 89c142f4ef248ac9542903175cdc4eba73b97ae5 Mon Sep 17 00:00:00 2001 From: Michael Olbrich Date: Fri, 17 Jul 2015 21:22:44 +0200 Subject: efi: use xstrdup_* when appropriate Signed-off-by: Michael Olbrich Signed-off-by: Sascha Hauer --- arch/efi/efi/efi.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'arch/efi/efi/efi.c') diff --git a/arch/efi/efi/efi.c b/arch/efi/efi/efi.c index 6cffac60f5..07a4d9d0fc 100644 --- a/arch/efi/efi/efi.c +++ b/arch/efi/efi/efi.c @@ -52,7 +52,7 @@ void *efi_get_variable(char *name, efi_guid_t *vendor, int *var_size) efi_status_t efiret; void *buf; unsigned long size = 0; - s16 *name16 = strdup_char_to_wchar(name); + s16 *name16 = xstrdup_char_to_wchar(name); efiret = RT->get_variable(name16, vendor, NULL, &size, NULL); @@ -87,7 +87,7 @@ int efi_set_variable(char *name, efi_guid_t *vendor, uint32_t attributes, void *buf, unsigned long size) { efi_status_t efiret = EFI_SUCCESS; - s16 *name16 = strdup_char_to_wchar(name); + s16 *name16 = xstrdup_char_to_wchar(name); efiret = RT->set_variable(name16, vendor, attributes, size, buf); @@ -146,7 +146,7 @@ struct efi_boot *efi_get_boot(int num) ptr += sizeof(u16); - boot->description = strdup_wchar_to_char(ptr); + boot->description = xstrdup_wchar_to_char(ptr); ptr += (strlen(boot->description) + 1) * 2; -- cgit v1.2.3