tree-wide: assorted coccinelle fixes
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user