From ed343114cd0844a7fd14b45f95c0f43a6d172a42 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sun, 30 Mar 2008 22:08:17 +0200 Subject: [PATCH] Remove two pointless else branches --- source/smbd/nttrans.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/source/smbd/nttrans.c b/source/smbd/nttrans.c index e8dae705b05..ae7bd8b7b72 100644 --- a/source/smbd/nttrans.c +++ b/source/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; } /* -- 2.47.3