From: Volker Lendecke Date: Sat, 18 Jan 2025 14:11:42 +0000 (+0100) Subject: streams_depot: Simplify walk_streams() X-Git-Tag: tdb-1.4.13~95 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=f51781056678df7a80a51377189b87a9a5eac53f;p=thirdparty%2Fsamba.git streams_depot: Simplify walk_streams() Remove unused pdirname parameter Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/source3/modules/vfs_streams_depot.c b/source3/modules/vfs_streams_depot.c index 77f16ab703c..d2b8a02431f 100644 --- a/source3/modules/vfs_streams_depot.c +++ b/source3/modules/vfs_streams_depot.c @@ -494,7 +494,6 @@ static NTSTATUS stream_smb_fname(vfs_handle_struct *handle, static NTSTATUS walk_streams(vfs_handle_struct *handle, struct smb_filename *smb_fname_base, - char **pdirname, bool (*fn)(const struct smb_filename *dirname, const char *dirent, void *private_data), @@ -581,13 +580,7 @@ static NTSTATUS walk_streams(vfs_handle_struct *handle, TALLOC_FREE(rootdir); TALLOC_FREE(dir_smb_fname); TALLOC_FREE(dir_hnd); - - if (pdirname != NULL) { - *pdirname = dirname; - } - else { - TALLOC_FREE(dirname); - } + TALLOC_FREE(dirname); return NT_STATUS_OK; } @@ -1171,7 +1164,6 @@ static NTSTATUS streams_depot_fstreaminfo(vfs_handle_struct *handle, status = walk_streams(handle, smb_fname_base, - NULL, collect_one_stream, &state);