1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-27 10:25:37 +03:00

analyze: use log_unit_error_errno()'s return value where we can

This commit is contained in:
Lennart Poettering 2018-06-20 22:22:03 +02:00
parent 7675251663
commit 4d2a7ffd5b

View File

@ -108,10 +108,8 @@ static int verify_socket(Unit *u) {
/* This makes sure instance is created if necessary. */
r = socket_instantiate_service(SOCKET(u));
if (r < 0) {
log_unit_error_errno(u, r, "Socket cannot be started, failed to create instance: %m");
return r;
}
if (r < 0)
return log_unit_error_errno(u, r, "Socket cannot be started, failed to create instance: %m");
/* This checks both type of sockets */
if (UNIT_ISSET(SOCKET(u)->service)) {