[PATCH 29/32] node_device_udev: remove yoda condition

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

 



---
 src/node_device/node_device_udev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/node_device/node_device_udev.c b/src/node_device/node_device_udev.c
index 484aa5c..aa4c36e 100644
--- a/src/node_device/node_device_udev.c
+++ b/src/node_device/node_device_udev.c
@@ -1206,7 +1206,7 @@ static int udevEnumerateDevices(struct udev *udev)
     udev_enumerate = udev_enumerate_new(udev);
 
     ret = udev_enumerate_scan_devices(udev_enumerate);
-    if (0 != ret) {
+    if (ret != 0) {
         virReportError(VIR_ERR_INTERNAL_ERROR, _("udev scan devices returned %d"), ret);
         goto out;
     }
-- 
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]