summaryrefslogtreecommitdiffstats
path: root/src/network/tc
diff options
context:
space:
mode:
authorFrantisek Sumsal <frantisek@sumsal.cz>2020-10-09 14:59:44 +0200
committerFrantisek Sumsal <frantisek@sumsal.cz>2020-10-09 15:02:23 +0200
commitd7a0f1f4f9910a1a2d290e31b2ba8cfa7126fbdd (patch)
treef519b20cb0835f71bd553abeca761882cad3299b /src/network/tc
parentcoccinelle: introduce drop-braces transformation (diff)
downloadsystemd-d7a0f1f4f9910a1a2d290e31b2ba8cfa7126fbdd.tar.xz
systemd-d7a0f1f4f9910a1a2d290e31b2ba8cfa7126fbdd.zip
tree-wide: assorted coccinelle fixes
Diffstat (limited to 'src/network/tc')
-rw-r--r--src/network/tc/gred.c3
-rw-r--r--src/network/tc/teql.c3
2 files changed, 2 insertions, 4 deletions
diff --git a/src/network/tc/gred.c b/src/network/tc/gred.c
index 5629ecd01a..7c9e01aba7 100644
--- a/src/network/tc/gred.c
+++ b/src/network/tc/gred.c
@@ -123,11 +123,10 @@ int config_parse_generic_random_early_detection_u32(
return 0;
}
- if (v > MAX_DPs) {
+ if (v > MAX_DPs)
log_syntax(unit, LOG_WARNING, filename, line, 0,
"Invalid '%s=', ignoring assignment: %s",
lvalue, rvalue);
- }
*p = v;
qdisc = NULL;
diff --git a/src/network/tc/teql.c b/src/network/tc/teql.c
index bc64860a35..f727d14341 100644
--- a/src/network/tc/teql.c
+++ b/src/network/tc/teql.c
@@ -79,11 +79,10 @@ int config_parse_trivial_link_equalizer_id(
lvalue, rvalue);
return 0;
}
- if (id > INT_MAX) {
+ if (id > INT_MAX)
log_syntax(unit, LOG_WARNING, filename, line, 0,
"'%s=' is too large, ignoring assignment: %s",
lvalue, rvalue);
- }
teql->id = id;