aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/efibootmgr/efibootmgr.c
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2018-01-06 06:00:40 +0000
committerWarner Losh <imp@FreeBSD.org>2018-01-06 06:00:40 +0000
commitcac7bbe16a1823f2ad74e1ebe9a024637d1b0153 (patch)
treeffc952a38ede29a7fd8db7ebc0b78ea5af264b2a /usr.sbin/efibootmgr/efibootmgr.c
parentaf9d0c273f51b8e81d57c0c434114d205de9844c (diff)
downloadsrc-cac7bbe16a1823f2ad74e1ebe9a024637d1b0153.tar.gz
src-cac7bbe16a1823f2ad74e1ebe9a024637d1b0153.zip
There's no need / benefit from deleting the variable before we set it.
Sponsored by: Netflix
Notes
Notes: svn path=/head/; revision=327611
Diffstat (limited to 'usr.sbin/efibootmgr/efibootmgr.c')
-rw-r--r--usr.sbin/efibootmgr/efibootmgr.c1
1 files changed, 0 insertions, 1 deletions
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);
}