From: Yu Watanabe Date: Mon, 9 Nov 2020 20:40:58 +0000 (+0900) Subject: sd-bus: drop redundant abs() X-Git-Tag: v247-rc2~13 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6272aef5ff71feb23b7b37378ea5b7b13ed7799f;p=thirdparty%2Fsystemd.git sd-bus: drop redundant abs() strerror_safe() internally applies abs(). --- diff --git a/src/libsystemd/sd-bus/bus-error.c b/src/libsystemd/sd-bus/bus-error.c index 53a8cf343e7..8da2024a502 100644 --- a/src/libsystemd/sd-bus/bus-error.c +++ b/src/libsystemd/sd-bus/bus-error.c @@ -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) {