libsmb: Avoid an unnecessary "else"
authorVolker Lendecke <vl@samba.org>
Sun, 9 Jun 2013 09:41:32 +0000 (11:41 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 12 Aug 2013 05:25:55 +0000 (17:25 +1200)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
libcli/smb/smbXcli_base.c

index 5a5828acc76c02c35df21a26fc425751b95da538..b6d1ce9e020957d3eb11afe7802646ca45aec1cc 100644 (file)
@@ -1587,7 +1587,9 @@ static void smbXcli_conn_received(struct tevent_req *subreq)
                 * tevent_req_done().
                 */
                return;
-       } else if (!NT_STATUS_EQUAL(status, NT_STATUS_RETRY)) {
+       }
+
+       if (!NT_STATUS_EQUAL(status, NT_STATUS_RETRY)) {
                /*
                 * We got an error, so notify all pending requests
                 */