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

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