Commit bc5c8260 authored by Zhengchao Shao's avatar Zhengchao Shao Committed by David S. Miller

net/sched: remove return value of unregister_tcf_proto_ops

Return value of unregister_tcf_proto_ops is unused, remove it.
Signed-off-by: default avatarZhengchao Shao <shaozhengchao@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 736002fb
...@@ -23,7 +23,7 @@ struct tcf_walker { ...@@ -23,7 +23,7 @@ struct tcf_walker {
}; };
int register_tcf_proto_ops(struct tcf_proto_ops *ops); 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 { struct tcf_block_ext_info {
enum flow_block_binder_type binder_type; enum flow_block_binder_type binder_type;
......
...@@ -194,7 +194,7 @@ EXPORT_SYMBOL(register_tcf_proto_ops); ...@@ -194,7 +194,7 @@ EXPORT_SYMBOL(register_tcf_proto_ops);
static struct workqueue_struct *tc_filter_wq; 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; struct tcf_proto_ops *t;
int rc = -ENOENT; int rc = -ENOENT;
...@@ -214,7 +214,8 @@ int unregister_tcf_proto_ops(struct tcf_proto_ops *ops) ...@@ -214,7 +214,8 @@ int unregister_tcf_proto_ops(struct tcf_proto_ops *ops)
} }
} }
write_unlock(&cls_mod_lock); 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); EXPORT_SYMBOL(unregister_tcf_proto_ops);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment