From: Jesse Gross Date: Sat, 19 Nov 2011 22:29:19 +0000 (-0800) Subject: datapath: Remove unused variable in dp_notify.c. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5fe0ec3dfc8c9006f98a98026ad2844440f5704b;p=openvswitch datapath: Remove unused variable in dp_notify.c. Signed-off-by: Jesse Gross Acked-by: Ben Pfaff --- 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; }