From: Volker Lendecke Date: Mon, 13 Apr 2020 07:23:45 +0000 (+0200) Subject: libsmb: Slightly simplify get_ipc_connect() X-Git-Tag: ldb-2.2.0~911 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aa22ae6b4051f8654b12f3a34f6b3df1a4fa74fa;p=thirdparty%2Fsamba.git libsmb: Slightly simplify get_ipc_connect() No else required with an early return Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/source3/libsmb/cliconnect.c b/source3/libsmb/cliconnect.c index b87287fa24d..23b2bd2bdf7 100644 --- a/source3/libsmb/cliconnect.c +++ b/source3/libsmb/cliconnect.c @@ -3799,7 +3799,8 @@ struct cli_state *get_ipc_connect(char *server, if (NT_STATUS_IS_OK(nt_status)) { return cli; - } else if (is_ipaddress(server)) { + } + if (is_ipaddress(server)) { /* windows 9* needs a correct NMB name for connections */ fstring remote_name;