[libvirt] [PATCH] lxc: remove dummy function

ajia at redhat.com ajia at redhat.com
Thu Oct 27 10:10:55 UTC 2011


From: Alex Jia <ajia at redhat.com>

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 at redhat.com>
---
 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




More information about the libvir-list mailing list