From: Volker Lendecke Date: Thu, 2 Nov 2023 12:35:19 +0000 (+0100) Subject: smbd: Remove a few pointless return; statements X-Git-Tag: talloc-2.4.2~836 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ae236f8f4db03c6bd6b7471565ad7341337dd405;p=thirdparty%2Fsamba.git smbd: Remove a few pointless return; statements Signed-off-by: Volker Lendecke Reviewed-by: Ralph Boehme --- diff --git a/source3/smbd/smb1_trans2.c b/source3/smbd/smb1_trans2.c index bf07f325397..77a5d361649 100644 --- a/source3/smbd/smb1_trans2.c +++ b/source3/smbd/smb1_trans2.c @@ -1970,8 +1970,6 @@ static void call_trans2qpipeinfo(connection_struct *conn, send_trans2_replies(conn, req, NT_STATUS_OK, params, param_size, *ppdata, data_size, max_data_bytes); - - return; } static void handle_trans2qfilepathinfo_result( @@ -5001,7 +4999,6 @@ static void call_trans2mkdir(connection_struct *conn, struct smb_request *req, close_file_free(NULL, &fsp, NORMAL_CLOSE); } TALLOC_FREE(smb_dname); - return; } /**************************************************************************** @@ -5053,8 +5050,6 @@ static void call_trans2findnotifyfirst(connection_struct *conn, fnf_handle = 257; send_trans2_replies(conn, req, NT_STATUS_OK, params, 6, *ppdata, 0, max_data_bytes); - - return; } /**************************************************************************** @@ -5084,8 +5079,6 @@ static void call_trans2findnotifynext(connection_struct *conn, SSVAL(params,2,0); /* No EA errors */ send_trans2_replies(conn, req, NT_STATUS_OK, params, 4, *ppdata, 0, max_data_bytes); - - return; } /**************************************************************************** @@ -5140,8 +5133,6 @@ static void call_trans2getdfsreferral(connection_struct *conn, SSVAL((discard_const_p(uint8_t, req->inbuf)), smb_flg2, SVAL(req->inbuf,smb_flg2) | FLAGS2_DFS_PATHNAMES); send_trans2_replies(conn, req, NT_STATUS_OK, 0,0,*ppdata,reply_size, max_data_bytes); - - return; } #define LMCAT_SPL 0x53 @@ -5702,5 +5693,4 @@ void reply_transs2(struct smb_request *req) TALLOC_FREE(state); reply_nterror(req, NT_STATUS_INVALID_PARAMETER); END_PROFILE(SMBtranss2); - return; }