smbd: Remove a variable only ever set to NULL
authorVolker Lendecke <vl@samba.org>
Mon, 13 Feb 2023 14:23:58 +0000 (15:23 +0100)
committerJeremy Allison <jra@samba.org>
Thu, 9 Mar 2023 18:10:33 +0000 (18:10 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/smb2_getinfo.c

index f5156147bc3cf681114b8804111524d7c06f2903..468010696fec8d99debc5960169a33fddda57f8a 100644 (file)
@@ -297,7 +297,6 @@ static struct tevent_req *smbd_smb2_getinfo_send(TALLOC_CTX *mem_ctx,
                bool delete_pending = false;
                struct timespec write_time_ts;
                struct file_id fileid;
-               struct ea_list *ea_list = NULL;
                size_t fixed_portion;
 
                ZERO_STRUCT(write_time_ts);
@@ -421,7 +420,7 @@ static struct tevent_req *smbd_smb2_getinfo_send(TALLOC_CTX *mem_ctx,
                                               fsp->fsp_name,
                                               delete_pending,
                                               write_time_ts,
-                                              ea_list,
+                                              NULL,
                                               STR_UNICODE,
                                               in_output_buffer_length,
                                               &fixed_portion,