summaryrefslogtreecommitdiff
path: root/src/network/tc/sfb.c
diff options
context:
space:
mode:
authorSusant Sahani <ssahani@vmware.com>2021-01-17 11:14:15 +0100
committerYu Watanabe <watanabe.yu+github@gmail.com>2021-01-17 23:26:14 +0900
commit5a3e1cb918eaf8b55f9671a775359f7b1644a447 (patch)
treecae45801fbef225b24ce2afdebcbb1b967b59798 /src/network/tc/sfb.c
parent25351bc557f3923b523176126fb189563258b63a (diff)
downloadsystemd-5a3e1cb918eaf8b55f9671a775359f7b1644a447.tar.gz
network: tc use TAKE_PTR
Diffstat (limited to 'src/network/tc/sfb.c')
-rw-r--r--src/network/tc/sfb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/network/tc/sfb.c b/src/network/tc/sfb.c
index 674fdf6ac7..a4ca4884b1 100644
--- a/src/network/tc/sfb.c
+++ b/src/network/tc/sfb.c
@@ -84,7 +84,7 @@ int config_parse_stochastic_fair_blue_u32(
if (isempty(rvalue)) {
sfb->packet_limit = 0;
- qdisc = NULL;
+ TAKE_PTR(qdisc);
return 0;
}
@@ -96,7 +96,7 @@ int config_parse_stochastic_fair_blue_u32(
return 0;
}
- qdisc = NULL;
+ TAKE_PTR(qdisc);
return 0;
}