net/sched: remove return value of unregister_tcf_proto_ops
authorZhengchao Shao <shaozhengchao@huawei.com>
Wed, 13 Jul 2022 01:54:38 +0000 (09:54 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 13 Jul 2022 13:46:59 +0000 (14:46 +0100)
Return value of unregister_tcf_proto_ops is unused, remove it.

Signed-off-by: Zhengchao Shao <shaozhengchao@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/pkt_cls.h
net/sched/cls_api.c

index 8cf001aed858dc47cc296201ffa15494c46e5f52..d9d90e6925e146522bb4cee39caac80499639e3a 100644 (file)
@@ -23,7 +23,7 @@ struct tcf_walker {
 };
 
 int register_tcf_proto_ops(struct tcf_proto_ops *ops);
-int unregister_tcf_proto_ops(struct tcf_proto_ops *ops);
+void unregister_tcf_proto_ops(struct tcf_proto_ops *ops);
 
 struct tcf_block_ext_info {
        enum flow_block_binder_type binder_type;
index 9bb4d3dcc994fb259c12cfad3fd84f0f164ab1eb..c7a240232b8dd57149e65175f5defc32a59ba8ae 100644 (file)
@@ -194,7 +194,7 @@ EXPORT_SYMBOL(register_tcf_proto_ops);
 
 static struct workqueue_struct *tc_filter_wq;
 
-int unregister_tcf_proto_ops(struct tcf_proto_ops *ops)
+void unregister_tcf_proto_ops(struct tcf_proto_ops *ops)
 {
        struct tcf_proto_ops *t;
        int rc = -ENOENT;
@@ -214,7 +214,8 @@ int unregister_tcf_proto_ops(struct tcf_proto_ops *ops)
                }
        }
        write_unlock(&cls_mod_lock);
-       return rc;
+
+       WARN(rc, "unregister tc filter kind(%s) failed %d\n", ops->kind, rc);
 }
 EXPORT_SYMBOL(unregister_tcf_proto_ops);