1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-02 19:21:53 +03:00

basic/parse-util: remove unnecessary parentheses

This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2018-06-11 13:47:25 +02:00
parent b961fbd4ee
commit fbbe6d65b4

View File

@ -662,7 +662,7 @@ int parse_permille_unbounded(const char *p) {
r = safe_atoi(n, &v); r = safe_atoi(n, &v);
if (r < 0) if (r < 0)
return r; return r;
if (v > ((INT_MAX - q) / 10)) if (v > (INT_MAX - q) / 10)
return -ERANGE; return -ERANGE;
v = v * 10 + q; v = v * 10 + q;