Signed-off-by: Jesse Gross <je...@nicira.com>
---
 datapath/dp_notify.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/datapath/dp_notify.c b/datapath/dp_notify.c
index 415e83b..5d41d27 100644
--- a/datapath/dp_notify.c
+++ b/datapath/dp_notify.c
@@ -24,11 +24,10 @@
 #include "vport-netdev.h"
 
 static int dp_device_event(struct notifier_block *unused, unsigned long event,
-               void *ptr)
+                          void *ptr)
 {
        struct net_device *dev = ptr;
        struct vport *vport;
-       struct datapath *dp;
 
        if (is_internal_dev(dev))
                vport = internal_dev_get_vport(dev);
@@ -38,8 +37,6 @@ static int dp_device_event(struct notifier_block *unused, 
unsigned long event,
        if (!vport)
                return NOTIFY_DONE;
 
-       dp = vport->dp;
-
        switch (event) {
        case NETDEV_UNREGISTER:
                if (!is_internal_dev(dev)) {
@@ -67,6 +64,7 @@ static int dp_device_event(struct notifier_block *unused, 
unsigned long event,
                }
                break;
        }
+
        return NOTIFY_DONE;
 }
 
-- 
1.7.5.4

_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to