From ae4159f0f7160ffd4ebcc0a2a79681d873e3e4f4 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sun, 30 Mar 2008 22:08:17 +0200 Subject: Remove two pointless else branches (This used to be commit ed343114cd0844a7fd14b45f95c0f43a6d172a42) --- source3/smbd/nttrans.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'source3/smbd/nttrans.c') diff --git a/source3/smbd/nttrans.c b/source3/smbd/nttrans.c index e8dae705b0..ae7bd8b7b7 100644 --- a/source3/smbd/nttrans.c +++ b/source3/smbd/nttrans.c @@ -498,11 +498,10 @@ void reply_ntcreate_and_X(struct smb_request *req) do_ntcreate_pipe_open(conn, req); END_PROFILE(SMBntcreateX); return; - } else { - reply_doserror(req, ERRDOS, ERRnoaccess); - END_PROFILE(SMBntcreateX); - return; } + reply_doserror(req, ERRDOS, ERRnoaccess); + END_PROFILE(SMBntcreateX); + return; } oplock_request = (flags & REQUEST_OPLOCK) ? EXCLUSIVE_OPLOCK : 0; @@ -871,10 +870,9 @@ static void call_nt_transact_create(connection_struct *conn, ppparams, parameter_count, ppdata, data_count); return; - } else { - reply_doserror(req, ERRDOS, ERRnoaccess); - return; } + reply_doserror(req, ERRDOS, ERRnoaccess); + return; } /* -- cgit