From: Taehee Yoo Date: Sun, 9 Jun 2019 17:19:06 +0000 (+0900) Subject: net: openvswitch: remove unnecessary ASSERT_OVSL in ovs_vport_del() X-Git-Tag: v5.4-rc1~616^2~280 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f7a8fb1ff1e581f610c3d06cf30d09a52263794c;p=platform%2Fkernel%2Flinux-rpi.git net: openvswitch: remove unnecessary ASSERT_OVSL in ovs_vport_del() ASSERT_OVSL() in ovs_vport_del() is unnecessary because ovs_vport_del() is only called by ovs_dp_detach_port() and ovs_dp_detach_port() calls ASSERT_OVSL() too. Signed-off-by: Taehee Yoo Reviewed-by: Greg Rose Signed-off-by: David S. Miller --- diff --git a/net/openvswitch/vport.c b/net/openvswitch/vport.c index 258ce3b..9e71f1a 100644 --- a/net/openvswitch/vport.c +++ b/net/openvswitch/vport.c @@ -261,8 +261,6 @@ int ovs_vport_set_options(struct vport *vport, struct nlattr *options) */ void ovs_vport_del(struct vport *vport) { - ASSERT_OVSL(); - hlist_del_rcu(&vport->hash_node); module_put(vport->ops->owner); vport->ops->destroy(vport);