From: Pravin B Shelar Date: Fri, 11 Nov 2011 03:33:15 +0000 (-0800) Subject: datapath: Remove unnecessary definition of is_internal_vport() X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9599191347821c68a35c8e4b3d137103c61e02f7;p=openvswitch datapath: Remove unnecessary definition of is_internal_vport() Signed-off-by: Pravin B Shelar Acked-by: Jesse Gross --- diff --git a/datapath/vport-internal_dev.c b/datapath/vport-internal_dev.c index 26b432b7..bc7b70e6 100644 --- a/datapath/vport-internal_dev.c +++ b/datapath/vport-internal_dev.c @@ -311,11 +311,6 @@ int is_internal_dev(const struct net_device *netdev) #endif } -int is_internal_vport(const struct vport *vport) -{ - return vport->ops == &internal_vport_ops; -} - struct vport *internal_dev_get_vport(struct net_device *netdev) { if (!is_internal_dev(netdev)) diff --git a/datapath/vport-internal_dev.h b/datapath/vport-internal_dev.h index 7c765209..e8dadc01 100644 --- a/datapath/vport-internal_dev.h +++ b/datapath/vport-internal_dev.h @@ -12,8 +12,6 @@ #include "datapath.h" #include "vport.h" -int is_internal_vport(const struct vport *); - int is_internal_dev(const struct net_device *); struct vport *internal_dev_get_vport(struct net_device *);