diff options
Diffstat (limited to 'src/network/tc/fq-codel.c')
-rw-r--r-- | src/network/tc/fq-codel.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/network/tc/fq-codel.c b/src/network/tc/fq-codel.c index 42dfd632a2..50ec203e5b 100644 --- a/src/network/tc/fq-codel.c +++ b/src/network/tc/fq-codel.c @@ -108,14 +108,13 @@ int config_parse_fair_queueing_controlled_delay_u32( _cleanup_(qdisc_free_or_set_invalidp) QDisc *qdisc = NULL; FairQueueingControlledDelay *fqcd; - Network *network = data; + Network *network = ASSERT_PTR(data); uint32_t *p; int r; assert(filename); assert(lvalue); assert(rvalue); - assert(data); r = qdisc_new_static(QDISC_KIND_FQ_CODEL, network, filename, section_line, &qdisc); if (r == -ENOMEM) @@ -169,14 +168,13 @@ int config_parse_fair_queueing_controlled_delay_usec( _cleanup_(qdisc_free_or_set_invalidp) QDisc *qdisc = NULL; FairQueueingControlledDelay *fqcd; - Network *network = data; + Network *network = ASSERT_PTR(data); usec_t *p; int r; assert(filename); assert(lvalue); assert(rvalue); - assert(data); r = qdisc_new_static(QDISC_KIND_FQ_CODEL, network, filename, section_line, &qdisc); if (r == -ENOMEM) @@ -235,13 +233,12 @@ int config_parse_fair_queueing_controlled_delay_bool( _cleanup_(qdisc_free_or_set_invalidp) QDisc *qdisc = NULL; FairQueueingControlledDelay *fqcd; - Network *network = data; + Network *network = ASSERT_PTR(data); int r; assert(filename); assert(lvalue); assert(rvalue); - assert(data); r = qdisc_new_static(QDISC_KIND_FQ_CODEL, network, filename, section_line, &qdisc); if (r == -ENOMEM) @@ -289,7 +286,7 @@ int config_parse_fair_queueing_controlled_delay_size( _cleanup_(qdisc_free_or_set_invalidp) QDisc *qdisc = NULL; FairQueueingControlledDelay *fqcd; - Network *network = data; + Network *network = ASSERT_PTR(data); uint64_t sz; uint32_t *p; int r; @@ -297,7 +294,6 @@ int config_parse_fair_queueing_controlled_delay_size( assert(filename); assert(lvalue); assert(rvalue); - assert(data); r = qdisc_new_static(QDISC_KIND_FQ_CODEL, network, filename, section_line, &qdisc); if (r == -ENOMEM) |