aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesse Gross <jesse@nicira.com>2011-11-19 14:29:19 -0800
committerJesse Gross <jesse@nicira.com>2011-11-21 10:29:50 -0800
commit5fe0ec3dfc8c9006f98a98026ad2844440f5704b (patch)
treeeecad946e3e705ed0306332200543bb7fb378d66
parent69cd5b735977ee674515b52f2210c34aed0e7ccc (diff)
datapath: Remove unused variable in dp_notify.c.
Signed-off-by: Jesse Gross <jesse@nicira.com> Acked-by: Ben Pfaff <blp@nicira.com>
-rw-r--r--datapath/dp_notify.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/datapath/dp_notify.c b/datapath/dp_notify.c
index 415e83b2..5d41d27e 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;
}