From 4d2a7ffd5ba47da26dde13a537fd0d3adc6e126e Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 20 Jun 2018 22:22:03 +0200 Subject: analyze: use log_unit_error_errno()'s return value where we can --- src/analyze/analyze-verify.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/analyze') diff --git a/src/analyze/analyze-verify.c b/src/analyze/analyze-verify.c index 1f33e560ac..7f606ee24b 100644 --- a/src/analyze/analyze-verify.c +++ b/src/analyze/analyze-verify.c @@ -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)) { -- cgit v1.2.3