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:
parent
e3f91033ae
commit
4a31c768a9
@ -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) {
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user