1
0
mirror of https://github.com/systemd/systemd.git synced 2025-01-09 01:18:19 +03:00

network/qdisc: make qdisc_drop() static

This also drops unused constant return value.
This commit is contained in:
Yu Watanabe 2024-09-02 13:20:59 +09:00
parent e3f91033ae
commit 4a31c768a9
2 changed files with 1 additions and 4 deletions

View File

@ -392,7 +392,7 @@ void link_qdisc_drop_marked(Link *link) {
}
}
QDisc* qdisc_drop(QDisc *qdisc) {
static void qdisc_drop(QDisc *qdisc) {
assert(qdisc);
assert(qdisc->link);
@ -401,8 +401,6 @@ QDisc* qdisc_drop(QDisc *qdisc) {
/* link_qdisc_drop_marked() may invalidate qdisc, so run link_tclass_drop_marked() first. */
link_tclass_drop_marked(qdisc->link);
link_qdisc_drop_marked(qdisc->link);
return NULL;
}
static int qdisc_handler(sd_netlink *rtnl, sd_netlink_message *m, Request *req, Link *link, QDisc *qdisc) {

View File

@ -81,7 +81,6 @@ QDisc* qdisc_unref(QDisc *qdisc);
int qdisc_new_static(QDiscKind kind, Network *network, const char *filename, unsigned section_line, QDisc **ret);
void qdisc_mark_recursive(QDisc *qdisc);
QDisc* qdisc_drop(QDisc *qdisc);
void link_qdisc_drop_marked(Link *link);
int link_find_qdisc(Link *link, uint32_t handle, const char *kind, QDisc **qdisc);