sd-bus: drop redundant abs()

strerror_safe() internally applies abs().
This commit is contained in:
Yu Watanabe 2020-11-10 05:40:58 +09:00 committed by Zbigniew Jędrzejewski-Szmek
parent 72585a584d
commit 6272aef5ff
1 changed files with 1 additions and 1 deletions

View File

@ -581,7 +581,7 @@ const char *bus_error_message(const sd_bus_error *e, int error) {
return e->message;
}
return strerror_safe(abs(error));
return strerror_safe(error);
}
static bool map_ok(const sd_bus_error_map *map) {