datapath: Remove unused variable in dp_notify.c.
authorJesse Gross <jesse@nicira.com>
Sat, 19 Nov 2011 22:29:19 +0000 (14:29 -0800)
committerJesse Gross <jesse@nicira.com>
Mon, 21 Nov 2011 18:29:50 +0000 (10:29 -0800)
Signed-off-by: Jesse Gross <jesse@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
datapath/dp_notify.c

index 415e83b..5d41d27 100644 (file)
 #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;
 }