[PATCH 14/32] Move udevHasDeviceProperty earlier

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 src/node_device/node_device_udev.c | 22 ++++++++++++----------
 1 file changed, 12 insertions(+), 10 deletions(-)

diff --git a/src/node_device/node_device_udev.c b/src/node_device/node_device_udev.c
index 5d78527..d7a49f8 100644
--- a/src/node_device/node_device_udev.c
+++ b/src/node_device/node_device_udev.c
@@ -58,6 +58,18 @@ struct _udevPrivate {
 };
 
 
+static bool
+udevHasDeviceProperty(struct udev_device *dev,
+                      const char *key)
+{
+    if (udev_device_get_property_value(dev, key))
+        return true;
+
+    return false;
+}
+
+
+
 static const char *udevGetDeviceProperty(struct udev_device *udev_device,
                                          const char *property_key)
 {
@@ -1084,16 +1096,6 @@ udevProcessSCSIGeneric(struct udev_device *dev,
     return 0;
 }
 
-static bool
-udevHasDeviceProperty(struct udev_device *dev,
-                      const char *key)
-{
-    if (udev_device_get_property_value(dev, key))
-        return true;
-
-    return false;
-}
-
 static int
 udevGetDeviceType(struct udev_device *device,
                   virNodeDevCapType *type)
-- 
2.7.3

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]