summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorAhmad Fatoum <ahmad@a3f.at>2019-10-16 09:21:37 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2019-10-18 13:56:31 +0200
commit0fc1f8ef52847364224f87323c70bfcd43d8eaf6 (patch)
tree42f5026af3266c529e802ff65015e5b8f27d7df1 /fs
parentedf901bf6b0a0f2bd2d9d1ec9ec366140aa24489 (diff)
downloadbarebox-0fc1f8ef52847364224f87323c70bfcd43d8eaf6.tar.gz
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/efivarfs.c b/fs/efivarfs.c
index 1e80493..9eadda4 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));