From: Andrew Bartlett Date: Tue, 2 Aug 2011 13:17:02 +0000 (+1000) Subject: s3-ntlmssp Remove a level of nesting in if/else statement X-Git-Tag: talloc-2.0.6~69 X-Git-Url: http://git.samba.org/?p=amitay%2Fsamba.git;a=commitdiff_plain;h=1dbdddf223b5beb873505164310862b6bd2093d2 s3-ntlmssp Remove a level of nesting in if/else statement --- diff --git a/source3/auth/auth_ntlmssp.c b/source3/auth/auth_ntlmssp.c index cccb319ccc6..392955685c9 100644 --- a/source3/auth/auth_ntlmssp.c +++ b/source3/auth/auth_ntlmssp.c @@ -223,10 +223,9 @@ NTSTATUS auth_ntlmssp_prepare(const struct tsocket_address *remote_address, if (!NT_STATUS_IS_OK(nt_status)) { TALLOC_FREE(ans); return nt_status; - } else { - *auth_ntlmssp_state = ans; - return NT_STATUS_OK; } + *auth_ntlmssp_state = ans; + return NT_STATUS_OK; } if ((enum server_role)lp_server_role() == ROLE_STANDALONE) {