There's no need / benefit from deleting the variable before we set it.

Sponsored by: Netflix
This commit is contained in:
Warner Losh 2018-01-06 06:00:40 +00:00
parent af9d0c273f
commit cac7bbe16a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=327611

View File

@ -164,7 +164,6 @@ static int
set_bootvar(const char *name, uint8_t *data, size_t size) set_bootvar(const char *name, uint8_t *data, size_t size)
{ {
efi_del_variable(EFI_GLOBAL_GUID, name);
return efi_set_variable(EFI_GLOBAL_GUID, name, data, size, return efi_set_variable(EFI_GLOBAL_GUID, name, data, size,
COMMON_ATTRS); COMMON_ATTRS);
} }