Don't do an "else" after an early return
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
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) ||