From cac7bbe16a1823f2ad74e1ebe9a024637d1b0153 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Sat, 6 Jan 2018 06:00:40 +0000 Subject: [PATCH] There's no need / benefit from deleting the variable before we set it. Sponsored by: Netflix --- usr.sbin/efibootmgr/efibootmgr.c | 1 - 1 file changed, 1 deletion(-) diff --git a/usr.sbin/efibootmgr/efibootmgr.c b/usr.sbin/efibootmgr/efibootmgr.c index b21cbebc491f..9d02e642d7b3 100644 --- a/usr.sbin/efibootmgr/efibootmgr.c +++ b/usr.sbin/efibootmgr/efibootmgr.c @@ -164,7 +164,6 @@ static int 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, COMMON_ATTRS); }