tree-wide: coccinelle fixes

Another batch of fixes (mostly) generated by Coccinelle.
This commit is contained in:
Frantisek Sumsal
2021-03-18 11:59:31 +01:00
parent 22bf8ff8e0
commit 57ac6959f5
6 changed files with 11 additions and 16 deletions
+1 -2
View File
@@ -84,11 +84,10 @@ int config_parse_badadv_bandwidth (
return 0;
}
if (k/1000/100 > UINT32_MAX) {
if (k/1000/100 > UINT32_MAX)
log_syntax(unit, LOG_WARNING, filename, line, 0,
"The value of '%s=', is outside of 0...429496729500000 range: %s",
lvalue, rvalue);
}
*bandwidth = k/1000/100;