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

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