[libvirt] [PATCH] lxc: Fix coverity

Martin Kletzander mkletzan at redhat.com
Tue Jan 21 08:04:51 UTC 2014


Commit 399394ab74ebf3f6e60771044fda0ee69a2acf67 removed some coverity
comments which skipped the dead code, so add them back.

Signed-off-by: Martin Kletzander <mkletzan at redhat.com>
---
 src/lxc/lxc_driver.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/lxc/lxc_driver.c b/src/lxc/lxc_driver.c
index 4f35f93..e319234 100644
--- a/src/lxc/lxc_driver.c
+++ b/src/lxc/lxc_driver.c
@@ -2621,6 +2621,7 @@ lxcDomainGetBlkioParameters(virDomainPtr dom,
                     goto cleanup;
                 break;

+            /* coverity[dead_error_begin] */
             default:
                 break;
                 /* should not hit here */
@@ -2812,6 +2813,7 @@ lxcDomainGetBlkioParameters(virDomainPtr dom,
                 }
                 break;

+            /* coverity[dead_error_begin] */
             default:
                 break;
                 /* should not hit here */
-- 
1.8.5.3




More information about the libvir-list mailing list