[ovs-dev] [PATCH] vlandev: Fix an obvious predicate logic bug.

ZhengLingyun konghuarukhr at 163.com
Thu Apr 10 10:36:44 UTC 2014



Signed-off-by: ZhengLingyun <konghuarukhr at 163.com>
---
 lib/vlandev.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/vlandev.c b/lib/vlandev.c
index 382487c..d2f5a37 100644
--- a/lib/vlandev.c
+++ b/lib/vlandev.c
@@ -374,7 +374,7 @@ static int
 vlandev_del__(const char *vlan_dev)
 {
     struct shash_node *vd_node = shash_find(&vlan_devs, vlan_dev);
-    if (!vd_node) {
+    if (vd_node) {
         struct vlan_dev *vd = vd_node->data;
         struct vlan_real_dev *vrd = vd->real_dev;
 
-- 
1.7.9.5
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openvswitch.org/pipermail/ovs-dev/attachments/20140410/f17ef2ff/attachment-0005.html>


More information about the dev mailing list