From ebe2ceb3d9cd1d89cb6f5047e105b9b0dc368a5b Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Thu, 30 May 2019 11:31:56 +0200 Subject: [PATCH] smbd: Slightly simplify reply_lockingX() Don't do an "else" after an early return Signed-off-by: Volker Lendecke Reviewed-by: Stefan Metzmacher --- source3/smbd/reply.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c index da47e6ed9b9..a7054c57db7 100644 --- a/source3/smbd/reply.c +++ b/source3/smbd/reply.c @@ -8402,11 +8402,11 @@ void reply_lockingX(struct smb_request *req) if (num_locks == 0 && num_ulocks == 0) { END_PROFILE(SMBlockingX); return; - } else { - END_PROFILE(SMBlockingX); - reply_nterror(req, NT_STATUS_FILE_LOCK_CONFLICT); - return; } + + END_PROFILE(SMBlockingX); + reply_nterror(req, NT_STATUS_FILE_LOCK_CONFLICT); + return; } if ((fsp->sent_oplock_break == BREAK_TO_NONE_SENT) || -- 2.47.3