diff options
author | Ahmad Fatoum <ahmad@a3f.at> | 2019-10-16 09:21:37 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2019-10-18 13:56:31 +0200 |
commit | 0fc1f8ef52847364224f87323c70bfcd43d8eaf6 (patch) | |
tree | 42f5026af3266c529e802ff65015e5b8f27d7df1 /fs | |
parent | edf901bf6b0a0f2bd2d9d1ec9ec366140aa24489 (diff) | |
download | barebox-0fc1f8ef52847364224f87323c70bfcd43d8eaf6.tar.gz barebox-0fc1f8ef52847364224f87323c70bfcd43d8eaf6.tar.xz |
efi: use efi_guidcmp helper where appropriate
We have a helper for it. Let's use it.
Signed-off-by: Ahmad Fatoum <ahmad@a3f.at>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/efivarfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/efivarfs.c b/fs/efivarfs.c index 1e80493621..9eadda4121 100644 --- a/fs/efivarfs.c +++ b/fs/efivarfs.c @@ -145,7 +145,7 @@ static int efivars_create(struct device_d *dev, const char *pathname, mode_t mod if (ret) return -ENOENT; - if (memcmp(&vendor, &EFI_BAREBOX_VENDOR_GUID, sizeof(efi_guid_t))) + if (efi_guidcmp(vendor, EFI_BAREBOX_VENDOR_GUID)) return -EPERM; inode = xzalloc(sizeof(*inode)); |