If we return unconditionally, "else" is not needed
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
smbd_smb2_create_finish(req);
return req;
+ }
- } else if (CAN_PRINT(smb1req->conn)) {
+ if (CAN_PRINT(smb1req->conn)) {
if (state->dhnc != NULL || state->dh2c != NULL) {
/* durable handles are not supported on printers */
tevent_req_nterror(req, NT_STATUS_OBJECT_NAME_NOT_FOUND);
smbd_smb2_create_finish(req);
return req;
+ }
- } else if (state->do_durable_reconnect) {
+ if (state->do_durable_reconnect) {
DATA_BLOB new_cookie = data_blob_null;
NTTIME now = timeval_to_nttime(&smb2req->request_time);