svn commit: r327611 - head/usr.sbin/efibootmgr

Warner Losh imp at FreeBSD.org
Sat Jan 6 06:00:41 UTC 2018


Author: imp
Date: Sat Jan  6 06:00:40 2018
New Revision: 327611
URL: https://svnweb.freebsd.org/changeset/base/327611

Log:
  There's no need / benefit from deleting the variable before we set it.
  
  Sponsored by: Netflix

Modified:
  head/usr.sbin/efibootmgr/efibootmgr.c

Modified: head/usr.sbin/efibootmgr/efibootmgr.c
==============================================================================
--- head/usr.sbin/efibootmgr/efibootmgr.c	Sat Jan  6 06:00:34 2018	(r327610)
+++ head/usr.sbin/efibootmgr/efibootmgr.c	Sat Jan  6 06:00:40 2018	(r327611)
@@ -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);
 }


More information about the svn-src-all mailing list