OSDN Git Service

Remove an unused function
authorChih-Wei Huang <cwhuang@linux.org.tw>
Tue, 26 Feb 2019 06:57:00 +0000 (14:57 +0800)
committerPeter Jones <pjones@redhat.com>
Tue, 5 Mar 2019 18:13:26 +0000 (13:13 -0500)
This gets rid of an error from Android 9 clang:

external/efivar/src/linux.c:256:1: error: unused function 'supports_iface' [-Werror,-Wunused-function]
supports_iface(struct dev_probe *probe, enum interface_type iftype)
^
1 error generated.

Signed-off-by: Chih-Wei Huang <cwhuang@linux.org.tw>
src/linux.c

index 6d405af..4bb453b 100644 (file)
@@ -252,15 +252,6 @@ static struct dev_probe *dev_probes[] = {
         NULL
 };
 
-static inline bool
-supports_iface(struct dev_probe *probe, enum interface_type iftype)
-{
-        for (unsigned int i = 0; probe->iftypes[i] != unknown; i++)
-                if (probe->iftypes[i] == iftype)
-                        return true;
-        return false;
-}
-
 void HIDDEN
 device_free(struct device *dev)
 {