[PATCH] lxc: remove dummy function

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

 



From: Alex Jia <ajia@xxxxxxxxxx>

Cppcheck detected a syntaxError on lxcDomainInterfaceStats, my initial patch
added a '{' to reserve 'else' branch to avoid a syntax error, in fact, don't
need the dummy function in 'else' branch.

* src/lxc/lxc_driver.c: remove dummy function entirely.

Signed-off-by: Alex Jia <ajia@xxxxxxxxxx>
---
 src/lxc/lxc_driver.c |    9 ---------
 1 files changed, 0 insertions(+), 9 deletions(-)

diff --git a/src/lxc/lxc_driver.c b/src/lxc/lxc_driver.c
index 06bfa85..251fa92 100644
--- a/src/lxc/lxc_driver.c
+++ b/src/lxc/lxc_driver.c
@@ -2666,15 +2666,6 @@ cleanup:
         virDomainObjUnlock(vm);
     return ret;
 }
-#else
-static int
-lxcDomainInterfaceStats(virDomainPtr dom,
-                        const char *path ATTRIBUTE_UNUSED,
-                        struct _virDomainInterfaceStats *stats ATTRIBUTE_UNUSED)
-{
-    lxcError(VIR_ERR_NO_SUPPORT, "%s", __FUNCTION__);
-    return -1;
-}
 #endif
 
 static int lxcDomainGetAutostart(virDomainPtr dom,
-- 
1.7.1

--
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]