From 36bb685abde872f43c3e23150119c3af91dea569 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sun, 4 Feb 2018 15:13:43 +0000 Subject: [PATCH] libsocket: Avoid an unnecessary else branch MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Volker Lendecke Reviewed-by: Ralph Boehme Autobuild-User(master): Ralph Böhme Autobuild-Date(master): Tue Feb 13 21:07:17 CET 2018 on sn-devel-144 --- source4/lib/socket/socket_ip.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source4/lib/socket/socket_ip.c b/source4/lib/socket/socket_ip.c index 87b7bf4911d..e0aa5da07cb 100644 --- a/source4/lib/socket/socket_ip.c +++ b/source4/lib/socket/socket_ip.c @@ -316,7 +316,8 @@ static NTSTATUS ipv4_recvfrom(struct socket_context *sock, void *buf, if (gotlen == 0) { talloc_free(src); return NT_STATUS_END_OF_FILE; - } else if (gotlen == -1) { + } + if (gotlen == -1) { talloc_free(src); return map_nt_error_from_unix_common(errno); } -- 2.11.4.GIT