tree-wide: assorted coccinelle fixes

This commit is contained in:
Frantisek Sumsal
2020-10-09 15:02:23 +02:00
parent 44e66de0f2
commit d7a0f1f4f9
56 changed files with 351 additions and 399 deletions
+1 -2
View File
@@ -762,10 +762,9 @@ int config_parse_dhcp_send_option(
}
case DHCP_OPTION_DATA_STRING:
sz = cunescape(p, UNESCAPE_ACCEPT_NUL, &q);
if (sz < 0) {
if (sz < 0)
log_syntax(unit, LOG_WARNING, filename, line, sz,
"Failed to decode DHCP option data, ignoring assignment: %s", p);
}
udata = q;
break;
+1 -2
View File
@@ -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;
+1 -2
View File
@@ -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;