summaryrefslogtreecommitdiffstats
path: root/arch/efi/efi
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2015-07-17 21:22:44 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2015-07-27 07:23:19 +0200
commit89c142f4ef248ac9542903175cdc4eba73b97ae5 (patch)
treef6e6222d2d3231bc717f8dc311e1a89ce63cb6fa /arch/efi/efi
parentb04ec8bfb97dacc54c04d64aea786841da657e9f (diff)
downloadbarebox-89c142f4ef248ac9542903175cdc4eba73b97ae5.tar.gz
barebox-89c142f4ef248ac9542903175cdc4eba73b97ae5.tar.xz
efi: use xstrdup_* when appropriate
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/efi/efi')
-rw-r--r--arch/efi/efi/efi.c6
1 files changed, 3 insertions, 3 deletions
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;