Blame SOURCES/0008-Remove-an-unused-function.patch

d5c737
From f9a64ce561b122368118149cb24c20bf3e0c9e1c Mon Sep 17 00:00:00 2001
d5c737
From: Chih-Wei Huang <cwhuang@linux.org.tw>
d5c737
Date: Tue, 26 Feb 2019 14:57:00 +0800
d5c737
Subject: [PATCH 08/63] Remove an unused function
d5c737
d5c737
This gets rid of an error from Android 9 clang:
d5c737
d5c737
external/efivar/src/linux.c:256:1: error: unused function 'supports_iface' [-Werror,-Wunused-function]
d5c737
supports_iface(struct dev_probe *probe, enum interface_type iftype)
d5c737
^
d5c737
1 error generated.
d5c737
d5c737
Signed-off-by: Chih-Wei Huang <cwhuang@linux.org.tw>
d5c737
---
d5c737
 src/linux.c | 9 ---------
d5c737
 1 file changed, 9 deletions(-)
d5c737
d5c737
diff --git a/src/linux.c b/src/linux.c
d5c737
index 6d405af8a76..4bb453be834 100644
d5c737
--- a/src/linux.c
d5c737
+++ b/src/linux.c
d5c737
@@ -252,15 +252,6 @@ static struct dev_probe *dev_probes[] = {
d5c737
         NULL
d5c737
 };
d5c737
 
d5c737
-static inline bool
d5c737
-supports_iface(struct dev_probe *probe, enum interface_type iftype)
d5c737
-{
d5c737
-        for (unsigned int i = 0; probe->iftypes[i] != unknown; i++)
d5c737
-                if (probe->iftypes[i] == iftype)
d5c737
-                        return true;
d5c737
-        return false;
d5c737
-}
d5c737
-
d5c737
 void HIDDEN
d5c737
 device_free(struct device *dev)
d5c737
 {
d5c737
-- 
d5c737
2.26.2
d5c737