net: openvswitch: remove unnecessary ASSERT_OVSL in ovs_vport_del()
authorTaehee Yoo <ap420073@gmail.com>
Sun, 9 Jun 2019 17:19:06 +0000 (02:19 +0900)
committerDavid S. Miller <davem@davemloft.net>
Tue, 11 Jun 2019 18:56:33 +0000 (11:56 -0700)
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 <ap420073@gmail.com>
Reviewed-by: Greg Rose <gvrose8192@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/openvswitch/vport.c

index 258ce3b7b4524bdade7472607dd784e28d612a6c..9e71f1a601a9102f63f28853b0f6af42fc328440 100644 (file)
@@ -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);