Commit 52327d2e authored by Zhengchao Shao's avatar Zhengchao Shao Committed by Jakub Kicinski

net: sched: remove the unused return value of unregister_qdisc

Return value of unregister_qdisc is unused, remove it.
Signed-off-by: default avatarZhengchao Shao <shaozhengchao@huawei.com>
Link: https://lore.kernel.org/r/20220815030417.271894-1-shaozhengchao@huawei.comSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 7ebfc85e
...@@ -100,7 +100,7 @@ struct Qdisc *fifo_create_dflt(struct Qdisc *sch, struct Qdisc_ops *ops, ...@@ -100,7 +100,7 @@ struct Qdisc *fifo_create_dflt(struct Qdisc *sch, struct Qdisc_ops *ops,
struct netlink_ext_ack *extack); struct netlink_ext_ack *extack);
int register_qdisc(struct Qdisc_ops *qops); int register_qdisc(struct Qdisc_ops *qops);
int unregister_qdisc(struct Qdisc_ops *qops); void unregister_qdisc(struct Qdisc_ops *qops);
void qdisc_get_default(char *id, size_t len); void qdisc_get_default(char *id, size_t len);
int qdisc_set_default(const char *id); int qdisc_set_default(const char *id);
......
...@@ -171,7 +171,7 @@ int register_qdisc(struct Qdisc_ops *qops) ...@@ -171,7 +171,7 @@ int register_qdisc(struct Qdisc_ops *qops)
} }
EXPORT_SYMBOL(register_qdisc); EXPORT_SYMBOL(register_qdisc);
int unregister_qdisc(struct Qdisc_ops *qops) void unregister_qdisc(struct Qdisc_ops *qops)
{ {
struct Qdisc_ops *q, **qp; struct Qdisc_ops *q, **qp;
int err = -ENOENT; int err = -ENOENT;
...@@ -186,7 +186,8 @@ int unregister_qdisc(struct Qdisc_ops *qops) ...@@ -186,7 +186,8 @@ int unregister_qdisc(struct Qdisc_ops *qops)
err = 0; err = 0;
} }
write_unlock(&qdisc_mod_lock); write_unlock(&qdisc_mod_lock);
return err;
WARN(err, "unregister qdisc(%s) failed\n", qops->id);
} }
EXPORT_SYMBOL(unregister_qdisc); EXPORT_SYMBOL(unregister_qdisc);
......
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