]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
get_virtual_functions_linux: would mistakenly always return zero
authorJim Meyering <meyering@redhat.com>
Thu, 18 Feb 2010 10:12:17 +0000 (11:12 +0100)
committerJim Meyering <meyering@redhat.com>
Thu, 18 Feb 2010 15:22:53 +0000 (16:22 +0100)
* src/node_device/node_device_linux_sysfs.c(get_virtual_functions_linux):
Return "ret", rather than always returning 0.

src/node_device/node_device_linux_sysfs.c

index e11fb2eb6500ec5d8d3ca574080ca36820fafb01..c4d1d01ee90705ce8258c6ad3def2e2a882f2c60 100644 (file)
@@ -375,7 +375,7 @@ out:
     if (dir)
         closedir(dir);
     VIR_FREE(device_link);
-    return 0;
+    return ret;
 }
 
 #endif /* __linux__ */