summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAhmad Fatoum <ahmad@a3f.at>2019-10-16 09:21:36 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2019-10-18 13:56:31 +0200
commitedf901bf6b0a0f2bd2d9d1ec9ec366140aa24489 (patch)
tree2096aca766c4d51bf9ce0aeffdfc6de0e7d1cf3d /include
parent7999733764b18ff74471255bc780c2f913d8fb73 (diff)
downloadbarebox-edf901bf6b0a0f2bd2d9d1ec9ec366140aa24489.tar.gz
barebox-edf901bf6b0a0f2bd2d9d1ec9ec366140aa24489.tar.xz
efi: retire efi_compare_guid in favor of efi_guidcmp
Both functions wrap the same memcmp except that one uses pointers to GUIDs and the other passes the GUIDs by value. The function is static inline, so it doesn't really matter which one we keep. We'll drop efi_compare_guid because it's been used once only in the code base so far. Signed-off-by: Ahmad Fatoum <ahmad@a3f.at> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r--include/efi.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/include/efi.h b/include/efi.h
index 218333f824..166803a58f 100644
--- a/include/efi.h
+++ b/include/efi.h
@@ -664,11 +664,6 @@ typedef union {
efi_ipv6_address v6;
} efi_ip_address;
-static inline int efi_compare_guid(efi_guid_t *a, efi_guid_t *b)
-{
- return memcmp(a, b, sizeof(efi_guid_t));
-}
-
struct efi_device_path *device_path_from_handle(efi_handle_t Handle);
char *device_path_to_str(struct efi_device_path *dev_path);
u8 device_path_to_type(struct efi_device_path *dev_path);