path: root/usr.sbin
diff options
authorWarner Losh <imp@FreeBSD.org>2017-11-10 23:30:23 +0000
committerWarner Losh <imp@FreeBSD.org>2017-11-10 23:30:23 +0000
commit831bec116381607774fa8621dc0e154555d763e0 (patch)
tree2fdc073afa0de45aff61dde685ca23a6f0a2e572 /usr.sbin
parent2dc620ac8318f40c8843896e4e568bb08575fcda (diff)
Simplify the efivar interface a little.
We started out having Linux compatible libefivar interfaces. This was in anticipation of porting the GPL'd efibootmgr to FreeBSD via a port. However, since we need that functionality in the base, that port isn't going to happened. It also appears that efivar is a private library that's not used much outside a command line util and efibootmgr. Reduce compatibility with the Linux version a little by removing the mode parameter to efi_set_variable (which was unused on FreeBSD, and not set to something useful in the code we'd written). Also remove some efi error routines that were never implemented and existed only to placate early GPL efibootmgr porting experiments. Suggested by: Matt Williams Sponsored by: Netflix
Notes: svn path=/head/; revision=325684
Diffstat (limited to 'usr.sbin')
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/efivar/efivar.c b/usr.sbin/efivar/efivar.c
index d156f78f1851..25eb8415b5a5 100644
--- a/usr.sbin/efivar/efivar.c
+++ b/usr.sbin/efivar/efivar.c
@@ -147,7 +147,7 @@ write_variable(char *name, char *val)
breakdown_name(name, &guid, &vname);
data = get_value(val, &datalen);
- if (efi_set_variable(guid, vname, data, datalen, attrib, 0) < 0)
+ if (efi_set_variable(guid, vname, data, datalen, attrib) < 0)
err(1, "efi_set_variable");