1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-26 03:22:00 +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);
if (r < 0)
return r;
if (v > ((INT_MAX - q) / 10))
if (v > (INT_MAX - q) / 10)
return -ERANGE;
v = v * 10 + q;